/* ===================================
   PAGE-SPECIFIC STYLES
   =================================== */

/* Page Header */
.page-header {
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.9);
}

/* Page Content */
.page-content {
    padding: 60px 0;
    background: var(--bg-white);
}

.content-section {
    margin-bottom: 4rem;
}

.content-section h2 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.content-section p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #555;
}

.content-section a {
    color: var(--primary-color);
    font-weight: 600;
}

.content-section a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Highlight Box */
.highlight-box {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 8px;
    border-left: 5px solid var(--accent-color);
}

/* Blockquote */
blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: white;
    border-left: 4px solid var(--accent-color);
    font-style: italic;
}

blockquote p {
    margin-bottom: 1rem;
    color: #666;
}

blockquote cite {
    display: block;
    font-style: normal;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 1rem;
}

/* CTA Box */
.cta-box {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 2rem;
}

.cta-box h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.cta-box p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* NRECA Info */
.nreca-info {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 8px;
}

.nreca-mission {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--primary-color);
    font-weight: 600;
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    margin-bottom: 1.5rem !important;
}

/* Event Info Styles */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    border-top: 4px solid var(--accent-color);
}

.info-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card ul li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
}

.info-card ul li:last-child {
    border-bottom: none;
}

.info-card ul li::before {
    content: '✓';
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 0.8rem;
    flex-shrink: 0;
}

/* Schedule Table */
.schedule-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.schedule-table table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table th {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 1.2rem;
    text-align: left;
    font-weight: 600;
}

.schedule-table td {
    padding: 1.2rem;
    border-bottom: 1px solid var(--border-color);
}

.schedule-table tr:last-child td {
    border-bottom: none;
}

.schedule-table tr:hover {
    background: var(--bg-light);
}

.schedule-table .time {
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
}

/* Form Styles */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #CC0000;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-note {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent-color);
}

.form-note strong {
    color: var(--primary-color);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.3);
}

/* Contact Info */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
}

.contact-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card p {
    margin-bottom: 0.5rem;
}

.contact-card a {
    color: var(--primary-color);
    font-weight: 600;
}

.contact-card a:hover {
    color: var(--primary-dark);
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
    background: var(--bg-light);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

.lightbox.active {
    display: block;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.lightbox-content img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10000;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Scores Table */
.scores-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.scores-table table {
    width: 100%;
    border-collapse: collapse;
}

.scores-table th {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.scores-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.scores-table tr:nth-child(even) {
    background: var(--bg-light);
}

.scores-table tr:hover {
    background: rgba(139, 69, 19, 0.05);
}

/* Links Page */
.links-list {
    list-style: none;
    padding: 0;
}

.links-list li {
    background: var(--bg-light);
    margin-bottom: 1rem;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    transition: var(--transition);
}

.links-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.links-list a {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.links-list a:hover {
    color: var(--primary-dark);
}

.links-list p {
    color: #666;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 2rem 1.5rem;
    }

    .highlight-box {
        padding: 2rem;
    }

    .schedule-table td,
    .schedule-table th {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .lightbox-content {
        padding: 40px 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}
