/*
Theme Name: Kadence Child - Konferencja
Template: kadence
Version: 1.0.0
*/

/* Import parent theme styles */
@import url('../kadence/style.css');

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Lato:wght@300;400;700&display=swap');

/* Font Family */
body {
    font-family: 'Lato', sans-serif;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
}

#main h2 {
    margin-bottom: 3rem;
}

#main .wpforms-container input.wpforms-field-medium {
    max-width: 100%;
}

#inner-wrap .entry-content-wrap {
    padding: 0;
}

/* Container - 10% total horizontal spacing (5% each side) */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
}

#main p {
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 3%;
    }
}

/* Section Backgrounds */
.section-cream {
    background-color: #fdfbf5;
    padding: 40px 0;
}

.section-beige {
    background-color: #f8f5eb;
    padding: 40px 0;
}

.section-navy {
    background-color: #0a192f;
    padding: 40px 0;
    color: white;
}

/* Archive page styles */
.archive-hero {
    background: linear-gradient(rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.85)), url('https://images.unsplash.com/photo-1524178232363-1fb2b075b655?auto=format&fit=crop&q=80') center/cover;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.archive-hero h1 {
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 20px;
}

.archive-hero p {
    font-size: 1.2rem;
    font-weight: 300;
}

/* Archive post cards */
.archive-post-card {
    background: white;
    border-radius: 10px;
    border-top: 5px solid #b68d40;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.archive-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.archive-post-card h2 a {
    color: #0a192f;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
}

.archive-post-card h2 a:hover {
    color: #b68d40;
}

.archive-post-card .wp-block-post-date {
    color: #b68d40;
    font-weight: 600;
}

.archive-post-card .wp-block-post-excerpt__more-link {
    color: #b68d40;
    text-decoration: none;
    font-weight: 600;
}

.archive-post-card .wp-block-post-excerpt__more-link:hover {
    color: #d4a753;
}

/* Fullwidth layout for posts */
.single-post #wrap {
    max-width: 100%;
    padding: 0;
}

/* Single post fullwidth layout */
.single-post #wrap {
    max-width: 100% !important;
    padding: 0 !important;
}

.single-post #primary {
    max-width: 100% !important;
    padding: 0 !important;
}

.single-post .entry-content {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.single-post .entry-header {
    background: linear-gradient(rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.85)), url('https://images.unsplash.com/photo-1524178232363-1fb2b075b655?auto=format&fit=crop&q=80') center/cover;
    color: white;
    padding: 100px 0;
    text-align: center;
    margin-bottom: 0;
}

.single-post .entry-header h1 {
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.single-post .entry-content .container {
    max-width: 1100px;
    margin: 80px auto;
    padding: 50px 5%;
    background: white;
    border-radius: 10px;
    border-top: 5px solid #b68d40;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.single-post #main {
    background-color: #0a192f;
    padding: 0 0 80px 0;
}

/* Post container styling - white card on dark background */
.single-post .entry-content .container {
    max-width: 1100px;
    margin: 80px auto;
    background: white;
    padding: 50px 5%;
    border-radius: 10px;
    border-top: 5px solid #b68d40;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.single-post .entry-content .container h2 {
    color: #0a192f;
    font-family: 'Playfair Display', serif;
    margin-top: 30px;
    margin-bottom: 20px;
}

.single-post .entry-content .container p {
    color: #2d2d2d;
    line-height: 1.8;
}

.single-post .entry-content .container ul {
    color: #2d2d2d;
}

.single-post .entry-content .container li {
    margin-bottom: 10px;
}

/* Timeline in post container */
.single-post .entry-content .container .timeline {
    background: #f8f5eb;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
}

/* Timeline base styles */
.single-post .timeline {
    background: #f8f5eb;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
}

.section-white {
    background-color: #ffffff;
    padding: 60px 0;
}

/* Section Title with Gold Underline */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 15px;
    color: #2d2d2d;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #b68d40;
}

.section-title.light {
    color: #b68d40;
}

/* Icon Boxes Grid - Horizontal on desktop */
.icons-grid {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    gap: 25px;
}

.icons-grid .icon-box {
    flex: 1;
    min-width: 0;
}

.icon-box {
    text-align: center;
    background: white;
    padding: 30px 15px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.icon-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(182, 141, 64, 0.15);
}

.icon-box i {
    font-size: 3rem;
    color: #b68d40;
    margin-bottom: 15px;
}

.icon-box h4 {
    color: #0a192f;
    font-family: 'Playfair Display', serif;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.icon-box p {
    font-size: 0.95rem;
    color: #555;
}

/* Feature Cards */
.feature-box {
    background: white;
    padding: 40px;
    border-radius: 8px;
    border-top: 5px solid #b68d40;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.feature-box h3 {
    color: #0a192f;
    font-family: 'Playfair Display', serif;
    margin-bottom: 15px;
}

.feature-box p {
    color: #2d2d2d;
}

/* Speakers Grid */
.speakers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.speaker-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.speaker-card:hover {
    transform: translateY(-10px);
}

.speaker-photo {
    width: 100%;
    height: 340px;
    object-fit: cover;
    filter: sepia(20%) contrast(85%);
}

.speaker-info {
    padding: 20px;
    text-align: center;
}

.speaker-info h3 {
    color: #0a192f;
    font-family: 'Playfair Display', serif;
    margin-bottom: 8px;
}

.speaker-info p {
    font-size: 0.95rem;
    color: #555;
}

/* Timeline */
.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    border-left: 2px solid #b68d40;
    padding-left: 20px;
    margin-bottom: 20px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: #b68d40;
    border-radius: 50%;
}

.timeline-time {
    font-weight: bold;
    color: #b68d40;
    display: block;
}

/* Partners */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.partner-logo {
    height: 64px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: grayscale(100%) opacity(75%);
    transition: all 0.3s ease;
    border-radius: 4px;
}

.partner-logo:hover {
    filter: grayscale(0%) opacity(100%);
    transform: scale(1.05);
}

.partners-grid a {
    display: inline-block;
    text-decoration: none;
}

/* Registration Box */
.registration-box {
    background: white;
    max-width: 600px;
    margin: 0 auto;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Form Placeholder */
.form-placeholder {
    border: 2px dashed #ddd;
    padding: 30px;
    text-align: center;
    color: #888;
}

/* Footer */
.site-footer,
.footer {
    background: #050d1a;
    color: white;
    padding: 50px 0;
    text-align: center;
}

.site-footer .inner-link-style-normal a:not(.button), .footer a {
    color: #b68d40;
    text-decoration: none;
}

.site-footer a:hover, .footer a:hover {
    color: #d4a753;
}

/* Hide post meta (author, date, categories, tags) on single posts */
.single-post .entry-meta,
.single-post .posted-on,
.single-post .byline,
.single-post .author,
.single-post .meta-author,
.single-post .meta-date,
.single-post .post-date,
.single-post .entry-footer,
.single-post .post-meta,
.single-post .kadence-post-meta,
.single-post .entry-meta-bottom,
.single-post .meta-below-title,
.single-post .kadence-byline,
.single-post .kadence-posted-on,
.single-post .cat-links,
.single-post .tags-links,
.single-post .category-links,
.single-post .post-categories,
.single-post .post-tags,
.single-post .meta-category,
.single-post .meta-tag,
.single-post .taxonomy-links,
.single-post .kadence-cat-links,
.single-post .kadence-tags-links,
.wp-block-post-date,
.wp-block-post-author,
.wp-block-post-terms,
.archive-item .post-meta,
.archive-item .entry-meta {
    display: none !important;
}

/* Also hide on archive pages */
.archive .entry-meta,
.archive .posted-on,
.archive .byline,
.archive .cat-links,
.archive .tags-links,
.archive .category-links,
.blog .entry-meta,
.blog .posted-on,
.blog .byline,
.blog .cat-links,
.blog .tags-links {
    display: none !important;
}

/* Gold Button */
.btn-gold,
.wp-block-button__link {
    background: #b68d40;
    color: white;
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-gold:hover,
.wp-block-button__link:hover {
    background: #d4a753;
    transform: translateY(-2px);
}

/* Navigation Menu CTA Button */
.main-navigation .menu-item:last-child a,
.primary-navigation .menu-item:last-child a,
.nav-menu .menu-item:last-child a,
#primary-menu .menu-item:last-child a {
    background: #b68d40;
    color: white !important;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.main-navigation .menu-item:last-child a:hover,
.primary-navigation .menu-item:last-child a:hover,
.nav-menu .menu-item:last-child a:hover,
#primary-menu .menu-item:last-child a:hover {
    background: #d4a753;
    transform: translateY(-2px);
}

/* Alternative: Target specific menu item by URL */
.menu-item a[href*="#zapisy"],
.menu-item a[href*="zapisy"] {
    background: #b68d40;
    color: white !important;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.menu-item a[href*="#zapisy"]:hover,
.menu-item a[href*="zapisy"]:hover {
    background: #d4a753;
    transform: translateY(-2px);
}
a.wp-block-button__link {
    background: #b68d40;
}

.btn-gold:hover,
.wp-block-button__link:hover {
    background: #d4a753;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 992px) {
    .icons-grid {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .icons-grid .icon-box {
        flex: 1 1 calc(50% - 25px);
        min-width: 200px;
    }
    
    .speakers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .icons-grid {
        flex-direction: column;
        flex-wrap: nowrap;
    }
    
    .icons-grid .icon-box {
        flex: 1 1 100%;
    }
    
    .speakers-grid {
        grid-template-columns: 1fr;
    }
    
    .section-cream,
    .section-beige,
    .section-navy {
        padding: 60px 0;
    }
}
    
    .speakers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .icons-grid {
        grid-template-columns: 1fr;
    }
    
    .speakers-grid {
        grid-template-columns: 1fr;
    }
    
    .section-cream,
    .section-beige,
    .section-navy {
        padding: 40px 0;
    }
}
