/* Dakota Country Magazine - Custom CSS */

/* Header Login Bar */
.dc-header-login-bar {
    background: #1a1a1a;
    padding: 0.35rem 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: #ccc;
    max-width: 100%;
}
.dc-hlb-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}
.dc-hlb-label {
    color: #999;
    font-weight: 600;
    white-space: nowrap;
}
.dc-hlb-form input[type="text"],
.dc-hlb-form input[type="password"] {
    padding: 0.25rem 0.5rem;
    border: 1px solid #444;
    border-radius: 3px;
    background: #2a2a2a;
    color: #fff;
    font-size: 0.8rem;
    width: 120px;
}
.dc-hlb-form input::placeholder {
    color: #777;
}
.dc-hlb-form button {
    padding: 0.25rem 0.75rem;
    background: #c40303;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
}
.dc-hlb-form button:hover {
    background: #a30202;
}
.dc-hlb-link {
    color: #ccc !important;
    text-decoration: none;
    font-size: 0.8rem;
}
.dc-hlb-link:hover {
    color: #fff !important;
}
.dc-hlb-welcome {
    color: #8f8;
}
.dc-hlb-logout {
    color: #f88 !important;
}
@media (max-width: 600px) {
    .dc-header-login-bar {
        flex-wrap: wrap;
        justify-content: center;
    }
    .dc-hlb-form input[type="text"],
    .dc-hlb-form input[type="password"] {
        width: 90px;
    }
}

/* Nav z-index fix */
header .wp-block-navigation,
.wp-block-template-part[data-area="header"] {
    position: relative;
    z-index: 100;
}

/* Navigation link colors on dark background */
.wp-block-navigation a,
.wp-block-navigation .wp-block-navigation-item__content {
    color: #ffffff !important;
}
.wp-block-navigation a:hover,
.wp-block-navigation .wp-block-navigation-item__content:hover {
    color: #c40303 !important;
}

/* Navigation submenu */
.wp-block-navigation .wp-block-navigation__submenu-container {
    background: #000000;
    border: 1px solid #333;
    min-width: 200px;
}
.wp-block-navigation .wp-block-navigation__submenu-container a {
    padding: 0.5rem 1rem;
}

/* Card styles */
.dc-card {
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
.dc-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* Ad image styling */
.dc-ad-image img,
.dc-sponsor img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}
.dc-ad-image:hover img,
.dc-sponsor:hover img {
    opacity: 0.9;
}

/* Sponsor grid */
.dc-sponsor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

/* Subscribe CTA banner */
.dc-subscribe-cta {
    background: #c40303;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}
.dc-subscribe-cta h2,
.dc-subscribe-cta p {
    color: #ffffff;
}

/* Hero slider replacement - cover block */
.dc-hero-cover .wp-block-cover {
    min-height: 450px;
}

/* Full-bleed group helper */
.dc-full-bleed {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

/* Article cards on archive */
.wp-block-post-template .wp-block-group.has-border-color {
    transition: box-shadow 0.2s ease;
}
.wp-block-post-template .wp-block-group.has-border-color:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* Partner logo in dark footer */
.partner-logo img {
    opacity: 0.85;
    transition: opacity 0.2s ease;
}
.partner-logo:hover img {
    opacity: 1;
}

/* Subscription pricing cards */
.dc-pricing-card {
    border: 2px solid #e3e3e3;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.2s ease;
}
.dc-pricing-card:hover {
    border-color: #c40303;
}

/* Events/News section headers */
.dc-section-header {
    border-bottom: 3px solid #c40303;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Editorial calendar grid */
.dc-editorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

/* Responsive */
@media (max-width: 782px) {
    .dc-sponsor-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dc-hero-cover .wp-block-cover {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .dc-sponsor-grid {
        grid-template-columns: 1fr;
    }
}

/* Podcast/Social section */
.dc-podcast-card {
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    overflow: hidden;
}

/* Gallery category cards */
.dc-gallery-card .wp-block-cover {
    min-height: 250px;
    border-radius: 8px;
    overflow: hidden;
}

/* Staff photo */
.dc-staff-photo img {
    border-radius: 8px;
    border: 3px solid #e3e3e3;
}

/* Fix post featured images in grid */
.wp-block-post-featured-image img {
    object-fit: cover;
    width: 100%;
}

/* Button hover */
.wp-block-button .wp-block-button__link:hover {
    background-color: #a30202 !important;
}
