/**
 * Custom Styles for Prix Photo Architecture Theme
 * 
 * @package Prix_Photo_Theme
 * @since 1.0.0
 */

/* ========================================
   Header Styles
   ======================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.site-header .wp-block-navigation__container {
    gap: 2rem;
}

.site-header .wp-block-navigation-item a {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.site-header .wp-block-navigation-item a:hover {
    color: var(--color-primary);
}

/* ========================================
   Hero Section
   ======================================== */

.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
    z-index: 1;
}

.hero-section .hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
    padding: 2rem;
}

.hero-section h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section p {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* ========================================
   Gallery Styles
   ======================================== */

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

.photo-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.photo-gallery-item:hover {
    transform: scale(1.02);
}

.photo-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-gallery-item:hover img {
    transform: scale(1.1);
}

.photo-gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.photo-gallery-item:hover .overlay {
    transform: translateY(0);
}

.photo-gallery-item .overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.photo-gallery-item .overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* ========================================
   Category Cards
   ======================================== */

.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.category-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.category-card p {
    color: #666;
    line-height: 1.6;
}

/* ========================================
   Judges Section
   ======================================== */

.judges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding: 2rem 0;
}

.judge-card {
    text-align: center;
}

.judge-card img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--color-primary);
}

.judge-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.judge-card .judge-title {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.judge-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========================================
   Prizes Section
   ======================================== */

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

.prize-card {
    background: white;
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--color-primary);
}

.prize-card .prize-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.prize-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.prize-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.prize-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.prize-card li:last-child {
    border-bottom: none;
}

/* ========================================
   Call to Action
   ======================================== */

.cta-section {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    text-align: center;
    padding: 5rem 2rem;
    border-radius: 12px;
    margin: 3rem 0;
}

.cta-section h2 {
    color: white;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-section .button {
    background: white;
    color: var(--color-primary);
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

.cta-section .button:hover {
    background: var(--color-background);
    transform: translateY(-3px);
}

/* ========================================
   Footer Styles
   ======================================== */

.site-footer {
    margin-top: 5rem;
}

.site-footer h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.site-footer p,
.site-footer a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.site-footer a:hover {
    color: white;
}

.site-footer .wp-block-social-links {
    margin-top: 1rem;
}

.newsletter-form input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background-color: var(--color-secondary);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .site-header .wp-block-navigation__container {
        gap: 1rem;
    }
    
    .photo-gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .judges-grid,
    .prizes-grid,
    .category-cards {
        gap: 2rem;
    }
    
    .cta-section {
        padding: 3rem 1.5rem;
    }
}

/* ========================================
   Animations
   ======================================== */

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ========================================
   Utility Classes
   ======================================== */

.bg-white {
    background-color: white;
}

.bg-light {
    background-color: var(--color-background);
}

.shadow {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.rounded {
    border-radius: 8px;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

