/* Global Styles */
:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #10b981;
    --danger-color: #ef4444;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
}

/* Navbar */
.navbar-custom {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7c3aed 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
}

.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: color 0.3s;
}

    .navbar-custom .nav-link:hover {
        color: white !important;
    }

/* Buttons */
.btn-primary-custom {
    background: var(--primary-color);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
}

    .btn-primary-custom:hover {
        background: var(--primary-hover);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
    }

.btn-outline-custom {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    background: transparent;
    transition: all 0.3s;
}

    .btn-outline-custom:hover {
        background: var(--primary-color);
        color: white;
    }

/* Cards */
.card-custom {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

    .card-custom:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
    }

/* Response Cards */
.response-card {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: white;
    transition: all 0.3s;
}

    .response-card:hover {
        border-color: var(--primary-color);
        box-shadow: 0 4px 20px rgba(79, 70, 229, 0.1);
    }

    .response-card .card-header {
        background: var(--bg-light);
        border: none;
        border-radius: 8px;
        padding: 0.75rem 1rem;
        margin-bottom: 1rem;
        font-weight: 600;
    }

/* Forms */
.form-control-custom {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s;
}

    .form-control-custom:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.15);
    }

textarea.form-control-custom {
    min-height: 150px;
}

/* Loading Spinner */
.spinner-custom {
    border: 3px solid var(--bg-light);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Alerts */
.alert-custom {
    border: none;
    border-radius: 8px;
    padding: 1rem 1.5rem;
}

/* Usage Badge */
/*.usage-badge {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}*/

/* Hero Section */
/*.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7c3aed 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

    .hero-section h1 {
        font-size: 3rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
    }

    .hero-section p {
        font-size: 1.25rem;
        margin-bottom: 2rem;
        opacity: 0.9;
    }*/

/* To make 50 languages badge pulse out (animate) but I am not sure yet if I like that */
.hero-badge-highlight {
    background: rgba(34, 197, 94, 0.3);
    border: 2px solid rgba(34, 197, 94, 0.8);
    font-weight: 600;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.6);
        transform: scale(1.05);
    }
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 2rem 0;
    margin-top: 5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }
}

/* Copy Button */
.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.response-text {
    position: relative;
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    white-space: pre-wrap;
    line-height: 1.6;
}

/* ========== Feature Cards ========== */

.feature-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e5e7eb;
}

    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        border-color: #d1d5db;
    }

    /* Feature card titles - BOLD */
    .feature-card h4 {
        font-weight: 700;
        color: #1f2937;
        margin-bottom: 1rem;
        font-size: 1.25rem;
    }

.feature-icon {
    font-size: 3rem;
}

/* Premium Language Feature Card - Purple/Blue Gradient */
.feature-card-premium {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border: 2px solid #6366f1;
    position: relative;
}

    .feature-card-premium::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
        border-radius: 12px 12px 0 0;
    }

.badge-icon {
    font-size: 12px;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-block;
}

/* Language Tags - Subtle Gray */
.language-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.lang-tag {
    display: inline-block;
    padding: 6px 14px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s ease;
}

    .lang-tag:hover {
        background: #e5e7eb;
        color: #374151;
        transform: translateY(-1px);
    }

.lang-tag-more {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

    .lang-tag-more:hover {
        background: #5568d3;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .feature-card {
        margin-bottom: 1rem;
    }

        .feature-card h4 {
            font-size: 1.15rem;
        }
}

/* ========== Language Showcase Section ========== */
.language-showcase-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.language-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.language-tag {
    display: inline-block;
    padding: 8px 16px;
    background: white;
    border: 2px solid #667eea;
    border-radius: 20px;
    font-weight: 500;
    font-size: 14px;
    color: #667eea;
    transition: all 0.3s ease;
}

    .language-tag:hover {
        background: #667eea;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
    }

/* Example Card */
.example-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.example-header {
    background: #667eea;
    padding: 15px;
    text-align: center;
}

.example-body {
    padding: 25px;
}

.example-email {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #dee2e6;
    font-style: italic;
}

    .example-email.highlighted {
        background: #e7f3ff;
        border-left: 4px solid #667eea;
        font-style: normal;
    }

/* Feature Card Highlight */
.feature-card.highlight-card {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border: 2px solid #667eea;
    transform: scale(1.02);
}

    .feature-card.highlight-card .feature-icon {
        font-size: 3rem;
        animation: pulse 2s infinite;
    }

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Use Case Card Highlight */
.use-case-card.highlight-card {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
}

/* Language List Modal */
.language-list {
    list-style: none;
    padding: 0;
}

    .language-list li {
        padding: 8px 0;
        border-bottom: 1px solid #eee;
    }

        .language-list li:last-child {
            border-bottom: none;
        }

/* Pricing Card Updates */
.pricing-card.featured {
    transform: scale(1.05);
    border: 3px solid #667eea;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
}

.badge-popular {
    position: absolute;
    top: -15px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.4);
}

.feature-list li strong {
    color: #667eea;
}

/* Use Case Featured Card - Blue/Purple Theme */
.use-case-card-featured {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8eaff 100%);
    border: 2px solid #667eea;
    position: relative;
    overflow: hidden;
}

    .use-case-card-featured::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
        border-radius: 12px 12px 0 0;
    }

    .use-case-card-featured:hover {
        border-color: #5568d3;
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    }

/* ========== Enhanced Pricing Cards (for pricing.html page) ========== */

.pricing-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    position: relative;
}

    .pricing-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    .pricing-card .card-title {
        font-size: 1.5rem;
        color: #1f2937;
        margin-bottom: 1rem;
    }

    .pricing-card h2 {
        font-size: 2.5rem;
        font-weight: 700;
        color: #1f2937;
    }

/* Feature List Styling */
.feature-list {
    margin: 1.5rem 0;
}

    .feature-list li {
        padding: 0.6rem 0;
        font-size: 0.95rem;
        border-bottom: 1px solid #f3f4f6;
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
    }

        .feature-list li:last-child {
            border-bottom: none;
        }

        .feature-list li span:first-child {
            font-size: 1.1rem;
            flex-shrink: 0;
            margin-top: 2px;
        }

        .feature-list li.text-muted {
            opacity: 0.5;
        }

/* Pro Plan Special Styling */
.pricing-card-pro {
    border-width: 3px !important;
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.15);
}

    .pricing-card-pro:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 40px rgba(34, 197, 94, 0.25);
    }

.popular-badge-top {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
    z-index: 10;
}

/* Language Highlight Box */
.language-highlight-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #3b82f6;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
}

    .language-highlight-box h4 {
        color: #1e40af;
    }

.language-flags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.flag-emoji {
    font-size: 2.5rem;
    transition: transform 0.2s ease;
    display: inline-block;
}

    .flag-emoji:hover {
        transform: scale(1.3) rotate(5deg);
    }

/* Existing discount/savings styles remain unchanged */
.savings-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 5;
}

.discount-preview {
    background: #f0fdf4;
    border: 2px solid #22c55e;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.original-price {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pricing-card {
        margin-bottom: 2rem;
    }

    .popular-badge-top {
        top: -12px;
        font-size: 10px;
        padding: 5px 12px;
    }

    .flag-emoji {
        font-size: 2rem;
    }
}