/* ResolvaX Modern Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #1c2b4a;
    --yellow: #ffc224;
    --teal: #1e8f8a;
    --teal-light: #2a9d8f;
    --blue: #5b72ee;
    --green: #10b981;
    --pink: #ec4899;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1c2b4a;
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Top Bar */
.top-bar {
    background: var(--navy);
    color: white;
    padding: 10px 0;
    font-size: 13px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icons {
    display: flex;
    gap: 8px;
}

.social-icon,
.top-link {
    color: white;
    text-decoration: none;
}

.top-link-register {
    color: var(--yellow);
    font-weight: 600;
    text-decoration: none;
}

/* Header */
.main-header-white {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-white {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo-edubin {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon-edubin {
    width: 45px;
    height: 45px;
    background: var(--yellow);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.logo-text-edubin {
    font-size: 24px;
    font-weight: 800;
    color: var(--navy);
}

.nav-menu-white {
    display: flex;
    gap: 25px;
}

.nav-link-white {
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-link-white:hover,
.nav-link-white.active {
    color: var(--yellow);
}

.nav-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.credits-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: #f0f9ff;
    border-radius: 20px;
    border: 1px solid #0ea5e9;
}

.coin-icon {
    font-size: 16px;
}

.credits-value {
    font-weight: 700;
    color: var(--navy);
    font-size: 14px;
}

.btn-send-question {
    background: #10b981;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-send-question:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-login {
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.btn-login:hover {
    color: var(--yellow);
}

/* Modern Hero - Degradê Teal */
.hero-modern {
    background: linear-gradient(135deg, #338b85 0%, #1e6f8a 100%);
    padding: 80px 0 100px;
    color: white;
}

.hero-content-modern {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title-modern {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-text-modern {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 35px;
    opacity: 0.95;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
}

.btn-green-modern {
    background: var(--green);
    color: white;
    padding: 14px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-green-modern:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-box-modern {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 50px;
    padding: 5px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.search-icon {
    font-size: 20px;
    padding: 0 15px;
}

.search-input-modern {
    flex: 1;
    border: none;
    outline: none;
    padding: 15px 20px;
    font-size: 15px;
    border-radius: 50px;
}

/* Platform Section */
.platform-modern {
    background: linear-gradient(135deg, #2a5f6f 0%, #1e4a5f 100%);
    padding: 60px 0;
    color: white;
}

.platform-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 60px;
    align-items: center;
}

.platform-heading {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.platform-description {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.9;
}

.platform-cards-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.subject-card {
    background: white;
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.subject-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.card-icon-modern {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.card-blue-modern .card-icon-modern {
    color: #5b72ee;
}

.card-teal-modern .card-icon-modern {
    color: #10b981;
}

.card-pink-modern .card-icon-modern {
    color: #ec4899;
}

.card-title-modern {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.card-text-modern {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Recent Questions Section */
.recent-questions-section {
    padding: 80px 0;
    background: #f8fafc;
}

.section-header-center {
    text-align: center;
    margin-bottom: 40px;
}

.section-title-modern {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 15px;
}

.section-subtitle-modern {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
}

.questions-filters-modern {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-pill {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 8px 20px;
    border-radius: 50px;
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-pill:hover,
.filter-pill.active {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}

.questions-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.question-card-modern {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border: 1px solid #f1f5f9;
}

.question-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.card-header-modern {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.subject-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.subject-icon-box.purple {
    background: #f3e8ff;
    color: #9333ea;
}

.subject-icon-box.pink {
    background: #fce7f3;
    color: #db2777;
}

.subject-icon-box.blue {
    background: #dbeafe;
    color: #2563eb;
}

.question-meta {
    flex: 1;
}

.question-title-card {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.user-info-card {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: #94a3b8;
}

.card-tags {
    margin-bottom: 20px;
}

.tag-level {
    background: #fff7ed;
    color: #ea580c;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.card-footer-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.status-badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.status-badge.answers {
    background: #dcfce7;
    color: #166534;
}

.status-badge.waiting {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.answered {
    background: #e0f2fe;
    color: #075985;
}

.credits-reward {
    color: var(--green);
    font-weight: 700;
    font-size: 0.9rem;
}

.section-footer-center {
    text-align: center;
}

.btn-view-all {
    background: var(--navy);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-view-all:hover {
    background: #0f172a;
    transform: translateY(-2px);
}

/* Teacher Tools Section */
.teacher-tools-section {
    padding: 80px 0;
    background: white;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.tool-card {
    background: white;
    border-radius: 16px;
    padding: 35px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.tool-icon-box {
    width: 70px;
    height: 70px;
    background: #f8fafc;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.tool-icon {
    font-size: 32px;
}

.tool-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 15px;
}

.tool-desc {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 25px;
    flex: 1;
}

.btn-tool {
    background: var(--navy);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    width: 100%;
}

.btn-tool:hover {
    background: #0f172a;
    transform: translateY(-2px);
}

/* Modern Footer */
.main-footer-modern {
    background: #0f172a;
    color: white;
    padding: 80px 0 30px;
}

.footer-grid-modern {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
}

.footer-desc {
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.social-links-footer {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--yellow);
    color: var(--navy);
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: white;
}

.footer-links-list {
    list-style: none;
}

.footer-links-list li {
    margin-bottom: 15px;
}

.footer-links-list a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-links-list a:hover {
    color: var(--yellow);
    padding-left: 5px;
}

.footer-bottom-modern {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .platform-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title-modern {
        font-size: 2.2rem;
    }

    .platform-cards-modern {
        grid-template-columns: 1fr;
    }

    .questions-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid-modern {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .top-bar-content,
    .navbar-white,
    .nav-menu-white {
        flex-direction: column;
    }

    .hero-actions {
        flex-direction: column;
    }
}

.tool-icon-box {
    width: 70px;
    height: 70px;
    background: #f8fafc;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.tool-icon {
    font-size: 32px;
}

.tool-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 15px;
}

.tool-desc {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 25px;
    flex: 1;
}

.btn-tool {
    background: var(--navy);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    width: 100%;
}

.btn-tool:hover {
    background: #0f172a;
    transform: translateY(-2px);
}

/* Modern Footer */
.main-footer-modern {
    background: #0f172a;
    color: white;
    padding: 80px 0 30px;
}

.footer-grid-modern {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
}

.footer-desc {
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.social-links-footer {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--yellow);
    color: var(--navy);
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: white;
}

.footer-links-list {
    list-style: none;
}

.footer-links-list li {
    margin-bottom: 15px;
}

.footer-links-list a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-links-list a:hover {
    color: var(--yellow);
    padding-left: 5px;
}

.footer-bottom-modern {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .platform-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title-modern {
        font-size: 2.2rem;
    }

    .platform-cards-modern {
        grid-template-columns: 1fr;
    }

    .questions-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid-modern {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .top-bar-content,
    .navbar-white,
    .nav-menu-white {
        flex-direction: column;
    }

    .hero-actions {
        flex-direction: column;
    }

    .questions-grid-modern {
        grid-template-columns: 1fr;
    }

    .footer-grid-modern {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }
}

.main-content {
    min-height: auto;
}

/* Modern Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
    gap: 8px;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--navy) 0%, #2a3f6a 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(28, 43, 74, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2a3f6a 0%, var(--navy) 100%);
    box-shadow: 0 8px 20px rgba(28, 43, 74, 0.3);
    transform: translateY(-2px);
}

.btn-outline {
    background: white;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.btn-outline:hover {
    border-color: var(--navy);
    color: var(--navy);
    background: #f8fafc;
}

.btn-ai-magic {
    background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-ai-magic:hover {
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

.btn-ai-magic::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-ai-magic:hover::before {
    left: 100%;
}

/* Form Input Modernization */
.form-input {
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
}

.form-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(91, 114, 238, 0.1);
}