/* ==========================================
   URL SLUG GENERATOR STYLES
========================================== */

/* Input Textarea */
#inputText {
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
}

/* Slug Output */
.slug-output {
    background: #f9fafb;
    border: 2px solid var(--primary-light);
    border-radius: 12px;
    padding: 1.5rem;
}

.slug-preview {
    font-family: 'Courier New', monospace;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    word-break: break-all;
    line-height: 1.6;
}

/* Slug Info */
.slug-info {
    background: white;
    border-radius: 12px;
    padding: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    font-size: 0.938rem;
}

.info-label {
    font-weight: 600;
    color: var(--gray-color);
    margin-right: 0.25rem;
}

.info-value {
    font-weight: 700;
    color: var(--primary-color);
}

/* Copy Button */
#copyBtn {
    transition: var(--transition);
}

#copyBtn:hover {
    transform: translateY(-2px);
}

/* Examples Section */
.examples-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.example-item {
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.example-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--gray-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.example-url {
    font-family: 'Courier New', monospace;
    font-size: 0.938rem;
    color: var(--dark-color);
    word-break: break-all;
}

.slug-highlight {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(249, 115, 22, 0.15) 100%);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Practice Cards */
.practice-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    height: 100%;
    transition: var(--transition);
    border: 2px solid transparent;
}

.practice-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.practice-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(249, 115, 22, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.practice-icon i {
    font-size: 1.75rem;
}

.practice-card h5 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.practice-card p {
    font-size: 0.938rem;
    line-height: 1.6;
    margin: 0;
}

/* Alert Styling */
.alert-info {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--primary-light);
    color: var(--dark-color);
}

/* SEO Status Colors */
#seoStatus.excellent {
    color: #10b981;
}

#seoStatus.good {
    color: #3b82f6;
}

#seoStatus.warning {
    color: #f59e0b;
}

#seoStatus.poor {
    color: #ef4444;
}

/* Responsive */
@media (max-width: 768px) {
    .slug-preview {
        font-size: 1rem;
    }

    .example-url {
        font-size: 0.813rem;
    }

    .info-item {
        font-size: 0.875rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#resultsSection .card {
    animation: fadeInUp 0.5s ease;
}

#resultsSection .card:nth-child(2) {
    animation-delay: 0.1s;
}

/* Pulse Animation for Copy Success */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

.slug-output.copied {
    animation: pulse 0.6s;
}