/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: linear-gradient(135deg, #dbeafe 0%, #ffffff 50%, #dcfce7 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid #2563eb;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 0;
}

.logo {
    height: 5rem;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.header-text h1 {
    font-size: 1.875rem;
    font-weight: 800;
    color: #1f2937;
    text-align: center;
    margin-bottom: 0.25rem;
}

.header-text p {
    font-size: 1.125rem;
    color: #6b7280;
    text-align: center;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2563eb 0%, #16a34a 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content {
    max-width: 4xl;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    background: #eab308;
    color: black;
    font-size: 1.125rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.75;
    max-width: 64rem;
    margin: 0 auto;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-gray {
    background: #f9fafb;
}

.section-gradient {
    background: linear-gradient(135deg, #dcfce7 0%, #dbeafe 100%);
}

/* Cards */
.card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card-header {
    padding: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.card-content {
    padding: 2rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #1f2937;
}

.icon {
    font-size: 2rem;
}

.section-text {
    font-size: 1.125rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

/* Prize Grid */
.prize-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.prize-card {
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 2px solid;
}

.prize-card-blue {
    background: #dbeafe;
    border-color: #93c5fd;
}

.prize-card-green {
    background: #dcfce7;
    border-color: #86efac;
}

.prize-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.prize-card-blue .prize-header h4 {
    color: #1d4ed8;
}

.prize-card-green .prize-header h4 {
    color: #15803d;
}

.prize-content ul {
    list-style: none;
    margin-bottom: 0.5rem;
}

.prize-content li {
    margin-bottom: 0.5rem;
}

.prize-note {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* Criteria List */
.criteria-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.criteria-item {
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid;
}

.criteria-blue {
    background: #dbeafe;
    border-color: #2563eb;
}

.criteria-green {
    background: #dcfce7;
    border-color: #16a34a;
}

.criteria-yellow {
    background: #fef3c7;
    border-color: #f59e0b;
}

.criteria-red {
    background: #fee2e2;
    border-color: #dc2626;
}

.criteria-purple {
    background: #f3e8ff;
    border-color: #9333ea;
}

.criteria-indigo {
    background: #e0e7ff;
    border-color: #4f46e5;
}

.criteria-teal {
    background: #ccfbf1;
    border-color: #0d9488;
}

.criteria-item h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border: 1px solid #d1d5db;
}

th {
    background: #f3f4f6;
    font-weight: 600;
    color: #374151;
}

.schools-table th {
    background: #dbeafe;
    color: #1e40af;
}

.values-table th {
    background: #dcfce7;
    color: #15803d;
}

.schedule-table th {
    background: #dbeafe;
    color: #1e40af;
}

.group-cell, .prize-cell, .segment-cell, .activity-cell {
    font-weight: 600;
}

.value-cell {
    font-weight: 700;
}

.value-green {
    color: #16a34a;
}

.value-blue {
    color: #2563eb;
}

.value-purple {
    color: #9333ea;
}

.value-red {
    color: #dc2626;
}

/* Notes */
.note {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 2rem;
    background: #f3f4f6;
    color: #374151;
    font-size: 0.875rem;
}

.note-blue {
    background: #dbeafe;
    color: #1e40af;
}

.note-yellow {
    background: #fef3c7;
    color: #92400e;
}

/* Subsections */
.subsection {
    margin-bottom: 3rem;
}

.subsection-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.subsection-title:first-of-type {
    color: #15803d;
}

.subsection:nth-child(2) .subsection-title {
    color: #1d4ed8;
}

/* Info Boxes */
.info-boxes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-box {
    padding: 1rem;
    border-radius: 0.5rem;
}

.info-box-blue {
    background: #dbeafe;
}

.info-box-green {
    background: #dcfce7;
}

.info-box-purple {
    background: #f3e8ff;
}

.info-box-orange {
    background: #fed7aa;
}

.info-box-red {
    background: #fee2e2;
}

/* Highlight Box */
.highlight-box {
    padding: 1.5rem;
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 0.5rem;
    margin-top: 1.5rem;
}

.highlight-box h5 {
    font-weight: 700;
    color: #92400e;
    margin-bottom: 0.75rem;
}

.highlight-box ul {
    list-style: none;
    margin-bottom: 1rem;
}

.highlight-box li {
    color: #92400e;
    margin-bottom: 0.5rem;
}

.highlight-note {
    font-size: 0.875rem;
    font-weight: 600;
    color: #92400e;
}

/* General Prizes */
.general-prizes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.general-prize {
    padding: 1.5rem;
    text-align: center;
    border-radius: 0.5rem;
    border: 2px solid;
}

.general-prize-blue {
    background: #dbeafe;
    border-color: #93c5fd;
}

.general-prize-green {
    background: #dcfce7;
    border-color: #86efac;
}

.general-prize-red {
    background: #fee2e2;
    border-color: #fca5a5;
}

.general-prize h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.general-prize-blue h5 {
    color: #1e40af;
}

.general-prize-green h5 {
    color: #15803d;
}

.general-prize-red h5 {
    color: #dc2626;
}

/* Warnings */
.warnings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.warning {
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid;
}

.warning-yellow {
    background: #fef3c7;
    border-color: #f59e0b;
}

.warning-blue {
    background: #dbeafe;
    border-color: #2563eb;
}

.warning-purple {
    background: #f3e8ff;
    border-color: #9333ea;
}

.warning-red {
    background: #fee2e2;
    border-color: #dc2626;
}

.warning-yellow p {
    color: #92400e;
}

.warning-blue p {
    color: #1e40af;
}

.warning-purple p {
    color: #7c3aed;
}

.warning-red p {
    color: #dc2626;
}

/* Exchange Locations */
.exchange-locations {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.location-box {
    padding: 1rem;
    border-radius: 0.5rem;
}

.location-blue {
    background: #dbeafe;
}

.location-green {
    background: #dcfce7;
}

.location-yellow {
    background: #fef3c7;
}

.location-purple {
    background: #f3e8ff;
}

.location-red {
    background: #fee2e2;
}

.location-box h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.location-blue h5 {
    color: #1e40af;
}

.location-green h5 {
    color: #15803d;
}

.location-purple h5 {
    color: #7c3aed;
}

.location-red h5 {
    color: #dc2626;
}

.location-yellow p {
    color: #92400e;
}

.alert {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #fee2e2;
    border-radius: 0.25rem;
}

.alert p {
    color: #dc2626;
    font-weight: 600;
}

/* Final Provisions */
.final-provisions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.provision {
    padding: 1rem;
    border-radius: 0.5rem;
}

.provision-blue {
    background: #dbeafe;
}

.provision-green {
    background: #dcfce7;
}

.provision-yellow {
    background: #fef3c7;
}

.provision-blue p {
    color: #1e40af;
}

.provision-green p {
    color: #15803d;
}

.provision-yellow p {
    color: #92400e;
}

/* Signatures */
.signatures {
    padding: 1.5rem;
    background: #f3f4f6;
    border-radius: 0.5rem;
}

.signature-date {
    text-align: center;
    color: #374151;
    margin-bottom: 1rem;
}

.signature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.signature-item {
    text-align: center;
}

.signature-name {
    font-weight: 700;
    color: #1f2937;
}

.signature-title {
    font-size: 0.875rem;
    color: #6b7280;
}

.commission h5 {
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #1f2937;
}

.commission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.commission-member {
    text-align: center;
}

.member-name {
    font-weight: 600;
    color: #1f2937;
}

.member-title {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Footer */
.footer {
    background: #374151;
    color: white;
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 4rem;
    width: auto;
}

.footer-logo-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.footer-logo-text p {
    color: #d1d5db;
}

.footer-right h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info {
    color: #d1d5db;
}

.contact-info p {
    margin-bottom: 0.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .header-text h1 {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section {
        padding: 2rem 0;
    }

    .card-header,
    .card-content {
        padding: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.25rem;
    }

    .prize-grid {
        grid-template-columns: 1fr;
    }

    .general-prizes {
        grid-template-columns: 1fr;
    }

    .signature-grid,
    .commission-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .table-container {
        font-size: 0.875rem;
    }

    th, td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .badge {
        font-size: 1rem;
        padding: 0.375rem 0.75rem;
    }

    .logo {
        height: 4rem;
    }

    .footer-logo-img {
        height: 3rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

.card {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover effects */
.criteria-item:hover,
.info-box:hover,
.warning:hover,
.provision:hover,
.location-box:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* Print styles */
@media print {
    .header {
        position: static;
        box-shadow: none;
    }
    
    .hero {
        background: #f3f4f6 !important;
        color: #1f2937 !important;
    }
    
    .badge {
        background: #f3f4f6 !important;
        color: #1f2937 !important;
        border: 1px solid #d1d5db;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #d1d5db;
    }
}

