/**
 * Font Converter Portal - Custom Styles
 * Modern, Responsive, SEO-Optimized Design
 */

/* ===== CSS Variables ===== */
:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --secondary: #7c3aed;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --font-primary: 'Inter', 'Noto Sans Devanagari', system-ui, -apple-system, sans-serif;
    --font-hindi: 'Noto Sans Devanagari', 'Mangal', 'Nirmala UI', sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,.05);
    --shadow: 0 1px 3px 0 rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background: var(--light);
    color: var(--gray-700);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
}

.hindi-text {
    font-family: var(--font-hindi);
}

/* ===== Navbar ===== */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary) !important;
    letter-spacing: -0.025em;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-600) !important;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    border-radius: 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
    background: rgba(79, 70, 229, 0.05);
}

.dropdown-menu {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    min-width: 280px;
}

.dropdown-item {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--gray-100);
    color: var(--primary);
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,149.3C960,160,1056,160,1152,144C1248,128,1344,96,1392,80L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

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

.hero-section p {
    font-size: 1.25rem;
    opacity: 0.9;
    position: relative;
}

/* ===== Tool Cards ===== */
.tool-card {
    border: none;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    background: white;
    overflow: hidden;
    height: 100%;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.tool-card .card-body {
    padding: 2rem;
}

.tool-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.tool-card:hover .tool-icon {
    transform: scale(1.1) rotate(5deg);
}

.tool-card h5 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.tool-card p {
    color: var(--gray-500);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.tool-card .btn-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    padding: 0;
    transition: var(--transition);
}

.tool-card .btn-link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

/* ===== Converter Interface ===== */
.converter-card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    background: white;
}

.converter-card .card-header {
    background: white;
    border-bottom: 2px solid var(--gray-100);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.converter-card .card-body {
    padding: 0;
}

.converter-textarea {
    border: none;
    padding: 1.5rem;
    font-size: 1.25rem;
    line-height: 1.8;
    min-height: 300px;
    resize: none;
    width: 100%;
    font-family: var(--font-hindi);
}

.converter-textarea:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--primary-light);
}

.converter-textarea[readonly] {
    background: var(--gray-100);
}

.converter-card .card-footer {
    background: white;
    border-top: 2px solid var(--gray-100);
    padding: 1rem 1.5rem;
}

/* ===== Action Buttons ===== */
.btn-action {
    border-radius: 0.5rem;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    transition: var(--transition);
    border: none;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    background: white;
    border-radius: var(--radius);
    padding: 0.75rem 1.25rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item.active {
    color: var(--gray-500);
}

/* ===== SEO Content Section ===== */
.seo-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow);
    margin-top: 3rem;
}

.seo-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.seo-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--gray-800);
}

.seo-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.seo-content ul,
.seo-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.seo-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.text-light {
    background-color: #f345f3 !important;
}
/* ===== Footer ===== */
footer {
    background: linear-gradient(135deg, #2d2d2e, #383738);
    color: #e6effc;
}

footer h5,
footer h6 {
    color: white;
    font-weight: 700;
}

footer a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: white;
}

/* ===== Ad Slots ===== */
.ad-slot {
    background: var(--gray-100);
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 1rem;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Responsive Design ===== */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: var(--radius);
        margin-top: 1rem;
        box-shadow: var(--shadow-lg);
    }
}

@media (max-width: 767.98px) {
    .tool-card .card-body {
        padding: 1.5rem;
    }
    
    .converter-textarea {
        font-size: 1rem;
        min-height: 200px;
        padding: 1rem;
    }
    
    .seo-content {
        padding: 1.5rem;
    }
    
    .seo-content h2 {
        font-size: 1.5rem;
    }
    
    .btn-action {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== Utility Classes ===== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* ===== Print Styles ===== */
@media print {
    .navbar,
    footer,
    .btn,
    .ad-slot {
        display: none !important;
    }
    
    .converter-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    body {
        background: white;
    }
}