/* ============================================================
   PROQITS TOOLS - BOOTSTRAP POWERED STYLES
   ============================================================ */

/* ---------- FIX: FULL HEIGHT LAYOUT ---------- */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

main {
    flex: 1 0 auto;
}

.footer {
    flex-shrink: 0;
    margin-top: 0;
}

/* ---------- CUSTOM VARIABLES ---------- */
:root {
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --secondary-color: #7c3aed;
    --accent-color: #06b6d4;
    --dark-bg: #1e1b4b;
    --card-shadow: 0 10px 40px rgba(79, 70, 229, 0.08);
    --card-hover-shadow: 0 20px 60px rgba(79, 70, 229, 0.15);
}

/* ---------- HEADER ---------- */
.site-header {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4f46e5 100%);
    padding: 16px 0;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.site-header .brand {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.site-header .brand i {
    margin-right: 8px;
    color: #a5b4fc;
}

.site-header .nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500;
    padding: 8px 18px !important;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.site-header .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
}

.site-header .nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.15);
}

/* ---------- HERO SECTION ---------- */
.hero-section {
    padding: 60px 0 40px;
    text-align: center;
}

.hero-section h1 {
    font-size: 48px;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -1px;
}

.hero-section h1 .highlight {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section .subtitle {
    font-size: 20px;
    color: #6b7280;
    max-width: 600px;
    margin: 16px auto 0;
}

/* ---------- LANGUAGE SECTIONS ---------- */
.language-section {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 28px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.4s ease;
}

.language-section:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
    border-color: rgba(79, 70, 229, 0.2);
}

.language-section .section-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e1b4b;
    margin-bottom: 16px;
}

.language-section .section-title .flag {
    font-size: 28px;
    margin-right: 10px;
}

.language-section .tool-item {
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.language-section .tool-item:last-child {
    border-bottom: none;
}

.language-section .tool-item a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 16px;
}

.language-section .tool-item a:hover {
    color: #4338ca;
    transform: translateX(4px);
}

.language-section .tool-item a i {
    margin-right: 8px;
    font-size: 14px;
    opacity: 0.7;
}

/* ---------- TOOL CARDS ---------- */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.tool-card {
    background: white;
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tool-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-hover-shadow);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card .tool-icon {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
    color: #4f46e5;
}

.tool-card a {
    font-size: 18px;
    font-weight: 600;
    color: #1e1b4b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tool-card a:hover {
    color: #4f46e5;
}

.tool-card .tool-description {
    font-size: 14px;
    color: #6b7280;
    margin-top: 8px;
}

/* ---------- BACK BUTTON ---------- */
.back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    margin-bottom: 30px;
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 28px;
    border: 2px solid #4f46e5;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: transparent;
}

.back-home:hover {
    background: #4f46e5;
    color: white !important;
    text-decoration: none;
    transform: translateX(-4px);
}

.back-home i {
    font-size: 16px;
}

/* ---------- FOOTER ---------- */
.footer {
    background: #1e1b4b;
    color: rgba(255, 255, 255, 0.6);
    padding: 30px 0;
    border-top: 2px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}

.footer .footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
    margin: 0 12px;
}

.footer .footer-links a:hover {
    color: #fff;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 32px;
    }

    .hero-section .subtitle {
        font-size: 17px;
    }

    .language-section {
        padding: 20px;
    }

    .language-section .tool-item a {
        font-size: 15px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .site-header .brand {
        font-size: 20px;
    }

    .back-home {
        width: 100%;
        justify-content: center;
    }

    .footer {
        text-align: center;
    }

    .footer .footer-links {
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 26px;
    }

    .hero-section .subtitle {
        font-size: 15px;
    }

    .language-section .section-title {
        font-size: 18px;
    }

    .tool-card a {
        font-size: 16px;
    }
}