/* pages.css - Page-specific styles for Idyllwild Earth Fair */

/* Theme Gallery Page */
.theme-gallery-container {
    margin: 40px 0;
}

.theme-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.theme-item {
    background-color: var(--light-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    cursor: pointer;
    position: relative;
}

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

.theme-item.active {
    border: 3px solid var(--primary);
}

/* Updated theme item image styling */
.theme-item img {
    width: 100%;
    height: 180px;
    object-fit: contain; /* Changed from cover to contain */
    background-color: #f5f5f5; /* Added background color for transparent images */
}

.theme-year {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
}

.theme-title {
    padding: 10px;
    text-align: center;
    font-weight: bold;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.theme-details {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
    text-align: center;
}

.theme-image-large {
    margin-top: 20px;
}

.theme-image-large img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.theme-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.theme-table th {
    background-color: var(--primary);
    color: white;
    padding: 12px;
    text-align: left;
}

.theme-table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

.theme-table tr:nth-child(even) {
    background-color: rgba(0,0,0,0.03);
}

/* Featured Theme Section for Themes Page */
.featured-theme-section {
    background-color: var(--light-bg);
    padding: 40px 0;
    margin-bottom: 50px;
}

.featured-theme-section .section-heading {
    margin-top: 0;
}

.featured-theme-section .theme-highlight-card {
    margin-top: 30px;
}

.artist-bio {
    margin-top: 25px;
}

.artist-details {
    background-color: rgba(77, 140, 87, 0.05);
    padding: 20px;
    border-radius: 8px;
    margin-top: 5px;
}

.artist-name {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
    font-weight: bold;
}

.artist-background {
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Greenwood Award Page */
.awardees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.awardee-card {
    background-color: var(--light-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

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

.awardee-year {
    background-color: var(--primary);
    color: white;
    padding: 10px;
    font-weight: bold;
    text-align: center;
    font-size: 1.2rem;
}

.awardee-name {
    padding: 20px;
    text-align: center;
    font-size: 1.1rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Committee Page */
.committee-columns {
    display: flex;
    gap: 30px;
    margin: 30px 0 50px;
}

.committee-column {
    flex: 1;
}

.committee-column ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.committee-column li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.committee-member-card {
    background-color: var(--light-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    padding-bottom: 15px;
    transition: transform 0.3s;
}

.committee-member-card:hover {
    transform: translateY(-5px);
}

.committee-member-card img {
    width: 100%;
    height: 200px;
    object-fit: contain; /* Changed from cover to contain */
    background-color: #f5f5f5; /* Added background color */
}

.committee-member-card h3 {
    margin: 15px 0 5px;
    text-align: center;
}

.committee-member-card p {
    margin: 0;
    text-align: center;
    color: var(--light-text);
}

/* About Page Timeline - Complete Rewrite */
.timeline-wrapper {
    position: relative;
    max-width: 900px;
    margin: 50px auto;
    padding: 20px 0;
}

/* Center line */
.timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--primary);
    transform: translateX(-50%);
}

/* Timeline entries */
.timeline-entry {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    align-items: flex-start;
}

/* Left entries */
.timeline-entry.left {
    justify-content: flex-start;
}

.timeline-entry.left .timeline-content {
    order: 1;
    margin-right: 80px;
    text-align: right;
    width: calc(50% - 80px);
}

.timeline-entry.left .timeline-marker {
    order: 2;
}

/* Right entries */
.timeline-entry.right {
    justify-content: flex-end;
}

.timeline-entry.right .timeline-content {
    order: 2;
    margin-left: 80px;
    text-align: left;
    width: calc(50% - 80px);
}

.timeline-entry.right .timeline-marker {
    order: 1;
}

/* Timeline marker (dot + year) */
.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    flex-direction: column;
}

/* Timeline dot */
.timeline-dot {
    width: 24px;
    height: 24px;
    background: var(--accent);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--primary);
    margin-bottom: 10px;
}

/* Year label */
.timeline-year {
    background: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    color: var(--primary-dark);
    font-size: 1.1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Content styling */
.timeline-content {
    background: var(--light-bg);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.timeline-content h3 {
    color: var(--primary);
    margin: 0 0 15px 0;
    font-size: 1.4rem;
}

.timeline-content p {
    margin: 0;
    line-height: 1.6;
    color: var(--text);
}

/* Mission and Goals sections */
.mission-statement {
    background-color: var(--primary-dark);
    color: white;
    padding: 30px;
    border-radius: 8px;
    font-size: 1.3rem;
    text-align: center;
    margin: 20px 0;
}

.goals-list {
    list-style-type: none;
    padding: 0;
}

.goals-list li {
    padding: 15px;
    margin-bottom: 10px;
    background-color: var(--light-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Newspaper feature styles */
.newspaper-feature {
    max-width: 600px;
    margin: 20px auto;
    text-align: center;
}

.newspaper-thumbnail {
    position: relative;
    display: inline-block;
    border: 1px solid #ddd;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.newspaper-thumb-img {
    max-width: 100%;
    display: block;
    transition: all 0.3s;
}

.pdf-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    text-decoration: none;
}

.newspaper-thumbnail:hover .pdf-overlay {
    opacity: 1;
}

.newspaper-thumbnail:hover .newspaper-thumb-img {
    transform: scale(1.05);
}

.pdf-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.pdf-text {
    font-weight: bold;
}

/* Homepage - Schedule Highlight Section */
.schedule-highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 40px 0;
    margin: 0 0 30px 0;
    position: relative;
    overflow: hidden;
}

.schedule-highlight::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.schedule-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
    z-index: 1;
}

.schedule-card h2 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-size: 2rem;
}

.schedule-card h2 i {
    color: var(--accent);
    margin-right: 10px;
}

.schedule-card p {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 25px;
}

.schedule-preview {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.preview-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.preview-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.preview-item strong {
    color: var(--accent);
    font-size: 1.3rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    /* Theme gallery responsive */
    .theme-gallery {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .theme-item img {
        height: 140px;
    }
    
    .theme-title {
        font-size: 0.8rem;
        height: 70px;
    }
    
    .featured-theme-section .theme-highlight-card {
        flex-direction: column;
    }
    
    .featured-theme-section .theme-highlight-content,
    .featured-theme-section .theme-highlight-image {
        width: 100%;
    }
    
    .featured-theme-section .theme-highlight-title {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .featured-theme-section .theme-highlight-content p {
        text-align: center;
    }
    
    .artist-bio {
        text-align: center;
    }
    
    .artist-details {
        padding: 15px;
    }
    
    /* Committee responsive */
    .committee-columns {
        flex-direction: column;
    }
    
    /* Homepage schedule highlight responsive */
    .schedule-highlight {
        padding: 30px 0;
    }
    
    .schedule-card {
        padding: 25px 20px;
    }
    
    .schedule-card h2 {
        font-size: 1.5rem;
    }
    
    .schedule-preview {
        gap: 20px;
    }
    
    .preview-item {
        font-size: 1rem;
    }
    
    /* Mobile responsive timeline */
    .timeline-wrapper::before {
        left: 30px;
    }
    
    .timeline-entry {
        flex-direction: row !important;
        justify-content: flex-start !important;
        margin-bottom: 40px;
    }
    
    .timeline-entry.left,
    .timeline-entry.right {
        padding-left: 80px;
    }
    
    .timeline-entry.left .timeline-content,
    .timeline-entry.right .timeline-content {
        order: 2 !important;
        margin: 0 !important;
        width: 100% !important;
        text-align: left !important;
    }
    
    .timeline-marker {
        position: absolute;
        left: 30px !important;
        transform: translateX(-50%);
        order: 1 !important;
    }
    
    .timeline-year {
        font-size: 0.9rem;
        padding: 3px 10px;
    }
}