/**
 * Elegant Horoskop System - Single Templates CSS
 * Version: 2.0.0
 * Author: Darko Ivanec / Digitalni Svemir
 *
 * Styles for:
 * - Single Zodiac Sign (120vh hero)
 * - Full-width carousel
 * - Centered content (max-width: 1000px)
 */

/* =============================================================================
   iOS SAFARI OPTIMIZATIONS
   ============================================================================= */

/* Font smoothing for better text rendering on iOS Safari */
body.single-zodiac_sign,
body.single-horoscope {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =============================================================================
   SINGLE ZODIAC SIGN - 120vh HERO
   ============================================================================= */

.ehs-zodiac-single-wrapper {
    position: relative;
    background: transparent;
    margin-top: 0;
}

/* Hero Section - 120vh */
.ehs-zodiac-hero {
    position: relative;
    min-height: 120vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background-size: cover;
    background-position: 50% center;
    background-repeat: no-repeat;
    background-color: #808080;
    background-blend-mode: multiply, normal;
    padding: 0;
    margin-top: 0;
    overflow: hidden;
}

/* Make hero go behind transparent header */
body.single-zodiac_sign #ajax-content-wrap {
    padding-top: 0 !important;
}

body.single-zodiac_sign .container-wrap {
    padding-top: 0 !important;
}

body.single-zodiac_sign #page-header-wrap {
    display: none !important;
}

/* Ensure hero starts at the very top */
body.single-zodiac_sign .ehs-zodiac-single-wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.single-zodiac_sign .ehs-zodiac-hero {
    margin-top: 0 !important;
}

/* Background Overlay - Additional gradient for depth */
.ehs-zodiac-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 40%,
        rgba(0, 0, 0, 0.1) 60%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 1;
}

/* Hero Content Wrapper - max-width 1000px, centered */
.ehs-zodiac-hero-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    width: 100%;
    padding: 140px 32px 2px 32px;
    margin: auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Category Label - ANALIZA HOROSKOPSKOG ZNAKA */
.ehs-zodiac-category-label {
    font-family: "Reddit Sans", sans-serif !important;
    font-size: 25px !important;
    font-weight: 700 !important;
    line-height: 30px !important;
    letter-spacing: 5px !important;
    text-transform: uppercase !important;
    color: #FFF !important;
    text-align: center !important;
    margin: 0 0 40px 0 !important;
    padding: 0 !important;
}

/* Zodiac Name (H1) - Blizanci */
.ehs-zodiac-name {
    font-family: 'DM Serif Text', Georgia, serif !important;
    font-size: 100px !important;
    font-weight: 400 !important;
    font-style: italic !important;
    line-height: 100px !important;
    letter-spacing: -2px !important;
    color: #A58134 !important;
    text-align: center !important;
    margin: 0 0 60px 0 !important;
    padding: 0 !important;
}

/* Dates - 21.05. - 21.06. */
.ehs-zodiac-dates {
    font-family: 'IBM Plex Serif', Georgia, serif !important;
    font-size: 40px !important;
    font-weight: 500 !important;
    font-style: normal !important;
    line-height: 50px !important;
    letter-spacing: 2px !important;
    color: #FFF !important;
    text-align: center !important;
    margin: 0 0 10px 0 !important;
}

/* Description Text */
.ehs-zodiac-description {
    font-family: 'IBM Plex Serif', Georgia, serif !important;
    font-size: 35px !important;
    font-weight: 400 !important;
    font-style: italic !important;
    line-height: 45px !important;
    color: #FFF !important;
    text-align: center !important;
    margin: 0 !important;
    max-width: 100%;
}

.ehs-zodiac-description p {
    font-family: 'IBM Plex Serif', Georgia, serif !important;
    font-size: 35px !important;
    font-weight: 400 !important;
    font-style: italic !important;
    line-height: 45px !important;
    color: #FFF !important;
    margin: 0 0 20px 0 !important;
}

.ehs-zodiac-description p:last-child {
    margin-bottom: 0 !important;
}

/* Social Share Section */
.ehs-zodiac-social-section {
    margin: 20px 0 20px 0;
    text-align: center;
}

/* Override theme's black background for social share on zodiac pages only */
body.single-zodiac_sign .elegant-share-buttons.theme-dark {
    background-color: transparent !important;
    width: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
}

/* Elegant Share Buttons */
.elegant-share-buttons {
    display: inline-flex;
    align-items: center;
    gap: 40px;
    position: relative;
}

.elegant-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    padding: 0;
}

.elegant-share-buttons.theme-dark .elegant-share-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.elegant-share-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.elegant-share-btn svg {
    width: 30px;
    height: 30px;
}

/* Copy confirmation message */
.elegant-share-copied-message {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.elegant-share-copied-message.show {
    opacity: 1;
    visibility: visible;
    bottom: -40px;
}

/* =============================================================================
   CAROUSEL SECTION - FULL WIDTH
   ============================================================================= */

.ehs-zodiac-carousel-section-fullwidth {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 40px 0 140px;
    background: transparent;
}

.ehs-zodiac-carousel-label {
    color: #FFF;
    text-align: center;
    font-family: "Reddit Sans", sans-serif;
    font-size: 25px;
    font-style: normal;
    font-weight: 800;
    line-height: 30px; /* 120% */
    letter-spacing: 5px;
    text-transform: uppercase;
    margin: 0 0 60px 0;
}

/* Carousel container - full width */
.ehs-zodiac-carousel-section-fullwidth .ehh-zodiac-carousel {
    width: 100%;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Zodiac icon circles - Override any database/customizer CSS */
/* Mobile: 96px circles */
.ehs-zodiac-carousel-section-fullwidth .ehh-zodiac-icon-circle,
body .ehs-zodiac-carousel-section-fullwidth .ehh-zodiac-icon-circle {
    width: 96px !important;
    height: 96px !important;
    min-width: 96px !important;
    min-height: 96px !important;
    max-width: 96px !important;
    max-height: 96px !important;
}

.ehs-zodiac-carousel-section-fullwidth .ehh-zodiac-icon,
body .ehs-zodiac-carousel-section-fullwidth .ehh-zodiac-icon {
    width: auto !important;
    height: 40px !important;
}

/* Desktop: 180px circles */
@media (min-width: 1000px) {
    .ehs-zodiac-carousel-section-fullwidth .ehh-zodiac-icon-circle,
    body .ehs-zodiac-carousel-section-fullwidth .ehh-zodiac-icon-circle {
        width: 180px !important;
        height: 180px !important;
        min-width: 180px !important;
        min-height: 180px !important;
        max-width: 180px !important;
        max-height: 180px !important;
    }

    .ehs-zodiac-carousel-section-fullwidth .ehh-zodiac-icon,
    body .ehs-zodiac-carousel-section-fullwidth .ehh-zodiac-icon {
        width: auto !important;
        height: 80px !important;
    }
}

/* =============================================================================
   SINGLE HOROSCOPE (TJEDNI & MJESEČNI) TEMPLATE
   ============================================================================= */

.ehs-horoscope-single-wrapper {
    position: relative;
    background: #FFF;
    margin-top: 0;
}

/* Make hero go behind transparent header */
body.single-horoscope #ajax-content-wrap {
    padding-top: 0 !important;
}

body.single-horoscope .container-wrap {
    padding-top: 0 !important;
}

body.single-horoscope #page-header-wrap {
    display: none !important;
}

body.single-horoscope .ehs-horoscope-single-wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Hero Section */
.ehs-horoscope-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: 50% center;
    background-repeat: no-repeat;
    background-color: #808080;
    background-blend-mode: multiply, normal;
    padding: 140px 32px 80px 32px;
    margin-top: 0;
}

.ehs-horoscope-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 40%,
        rgba(0, 0, 0, 0.1) 60%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 1;
}

.ehs-horoscope-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* Rubrika Badge - Matching .elegant-single-category from single posts */
.ehs-horoscope-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 11px 30px 10px 30px !important;
    margin-bottom: 30px !important;
    white-space: nowrap !important;
    background: #9B875D !important;
    color: #FFF !important;
    font-family: "Reddit Sans", sans-serif !important;
    font-size: 17px !important;
    font-style: normal !important;
    font-weight: 800 !important;
    line-height: 15px !important;
    letter-spacing: 3.4px !important;
    text-align: center !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
}

/* Desktop Badge - matching .elegant-single-category desktop */
@media (min-width: 1000px) {
    .ehs-horoscope-badge {
        margin-bottom: 50px !important;
        min-width: 233px !important;
        height: 46px !important;
        font-size: 25px !important;
        line-height: 30px !important;
        letter-spacing: 5px !important;
    }
}

/* Title */
.ehs-horoscope-title {
    font-family: 'DM Serif Text', Georgia, serif !important;
    font-size: 80px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    line-height: 85px !important;
    letter-spacing: -1.5px !important;
    color: #FFF !important;
    margin: 0 !important;
}

/* Meta (Author & Date) - Matching .elegant-single-meta from single posts */
.ehs-horoscope-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
}

.ehs-horoscope-author,
.ehs-horoscope-date {
    color: #FFF !important;
    text-align: center !important;
    font-family: "Reddit Sans", sans-serif !important;
    font-size: 15px !important;
    font-style: normal !important;
    font-weight: 500 !important;
    line-height: 27px !important;
    letter-spacing: 1.5px !important;
}

.ehs-horoscope-separator {
    display: none;
}

/* Desktop Meta - matching .elegant-single-author/.elegant-single-date desktop */
@media (min-width: 1000px) {
    body.single-horoscope .ehs-horoscope-author,
    body.single-horoscope .ehs-horoscope-date {
        font-size: 25px !important;
        line-height: 50px !important;
        letter-spacing: 2.5px !important;
    }
}

/* Social Share Section (Below Hero) */
.ehs-horoscope-social-section {
    padding: 0;
    text-align: center;
}

/* Override theme's styles for horoscope social share - white background full width */
body.single-horoscope .elegant-share-buttons.theme-dark {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    background-color: #FFFFFF !important;
    padding: 80px 32px 40px 32px;
}

body.single-horoscope .elegant-share-buttons.theme-dark .elegant-share-btn {
    background: rgba(0, 0, 0, 1) !important;
    color: #FFF !important;
}

body.single-horoscope .elegant-share-buttons.theme-dark .elegant-share-btn:hover {
    background: rgba(0, 0, 0, 0.8) !important;
}

body.single-horoscope .elegant-share-buttons.theme-dark .elegant-share-btn svg {
    color: #FFF !important;
    fill: #FFF !important;
}

/* Content Area (WPBakery) */
.ehs-horoscope-content {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 80px 0px;
    background: #FFF;
}

/* Tablet Content Area */
@media (min-width: 769px) and (max-width: 999px) {
    .ehs-horoscope-content {
        padding: 80px 50px !important;
    }
}

/* Desktop Content Area */
@media (min-width: 1000px) {
    .ehs-horoscope-content {
        max-width: 1100px !important;
        padding: 80px 50px !important;
    }
}

.ehs-horoscope-content p {
    font-family: 'IBM Plex Serif', Georgia, serif;
    font-size: 20px;
    line-height: 32px;
    color: #000;
    margin-bottom: 20px;
}

/* Carousel Section (No Black Background) */
.ehs-horoscope-carousel-section {
    position: relative;
    width: 100%;
    padding: 80px 0 100px;
    background: #FFF;
}

.ehs-horoscope-carousel-label {
    font-family: "Reddit Sans", sans-serif;
    font-size: 25px;
    line-height: 30px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #000;
    text-align: center;
    margin: 0 0 40px 0;
}

.ehs-horoscope-carousel-section .ehh-zodiac-carousel {
    width: 100%;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Najnovije Section */
.ehs-horoscope-najnovije-section {
    background: #fff;
    padding: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ehs-horoscope-hero {
        min-height: 80vh;
        padding: 100px 20px 60px 20px;
    }

    /* Mobile overlay za horoscope hero */
    .ehs-horoscope-hero-overlay {
        background: radial-gradient(279.88% 52.64% at 52.93% 36.5%, rgba(0, 0, 0, 0.00) 25.96%, #000 100%);
    }

    .ehs-horoscope-hero-content {
        gap: 20px;
    }

    /* Badge mobile margin */
    .ehs-horoscope-badge {
        margin-bottom: 10px !important;
    }

    .ehs-horoscope-title {
        font-size: 36px !important;
        line-height: 40px !important;
        letter-spacing: -0.5px !important;
        max-width: 300px !important;
    }

    .ehs-horoscope-content {
        padding: 25px 23px !important;
    }

    .ehs-horoscope-content p {
        font-size: 18px;
        line-height: 28px;
    }

    body.single-horoscope .elegant-share-buttons.theme-dark {
        padding: 60px 20px 30px 20px;
    }

    .ehs-horoscope-carousel-section {
        padding: 0px 0 60px;
    }

    .ehs-horoscope-carousel-label {
        font-size: 15px;
        line-height: 21px;
        font-weight: 800;
        letter-spacing: 2px;
        margin-bottom: 30px;
    }
}

/* =============================================================================
   NAJNOVIJE SECTION
   ============================================================================= */

.ehs-zodiac-najnovije-section {
    background: #FFF;
    padding: 0;
}

/* =============================================================================
   HOROSCOPE IMAGES GRID - WHITE BACKGROUND (from Astro Settings)
   ============================================================================= */

.ehs-zodiac-horoscope-images-grid {
    background: #FFF;
    padding: 80px 40px;
}

.ehs-zodiac-horoscope-images-grid .ehs-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.ehs-zodiac-horoscope-images-grid .ehs-grid-item {
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.ehs-zodiac-horoscope-images-grid .ehs-grid-link {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-decoration: none;
}

.ehs-zodiac-horoscope-images-grid .ehs-grid-image {
    width: 100%;
    height: 288px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.ehs-zodiac-horoscope-images-grid .ehs-grid-link:hover .ehs-grid-image {
    transform: scale(1.05);
}

.ehs-zodiac-horoscope-images-grid .ehs-grid-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ehs-zodiac-horoscope-images-grid .ehs-grid-label {
    font-family: "Reddit Sans", sans-serif;
    font-size: 13px;
    font-weight: 800;
    line-height: 15px;
    letter-spacing: 2.6px;
    text-transform: uppercase;
    color: #C99E41;
    margin: 0;
}

.ehs-zodiac-horoscope-images-grid .ehs-grid-title {
    font-family: 'DM Serif Text', Georgia, serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: -0.2px;
    color: #000;
    margin: 0;
    padding: 0;
}

/* Desktop Styles for Images Grid */
@media (min-width: 1000px) {
    .ehs-zodiac-horoscope-images-grid {
        padding: 100px 56px 200px 56px;
    }

    .ehs-zodiac-horoscope-images-grid .ehs-container {
        max-width: 2032px;
    }

    .ehs-zodiac-horoscope-images-grid .ehs-grid-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .ehs-zodiac-horoscope-images-grid .ehs-grid-label {
        font-size: 25px;
        line-height: 25px;
        letter-spacing: 5px;
        margin-top: 28px;
        margin-bottom: 20px;
    }

    .ehs-zodiac-horoscope-images-grid .ehs-grid-title {
        font-size: 55px;
        line-height: 55px;
        letter-spacing: -1.1px;
        max-width: 820px;
    }
}

/* =============================================================================
   RESPONSIVE - MOBILE
   ============================================================================= */

@media (max-width: 768px) {
    .ehs-zodiac-hero {
        min-height: 100vh;
        background-blend-mode: multiply, normal !important;
    }

    /* Override overlay gradient for mobile */
    .ehs-zodiac-hero-overlay {
        background: radial-gradient(279.88% 52.64% at 52.93% 36.5%, rgba(0, 0, 0, 0.20) 0%, #000 100%);
    }

    .ehs-zodiac-hero-content-wrapper {
        padding: 150px 20px 20px;
    }

    .ehs-zodiac-category-label {
        color: #FFF;
        text-align: center;
        font-family: "Reddit Sans";
        font-size: 15px !important;
        font-style: normal;
        font-weight: 800 !important;
        line-height: 21px !important;
        letter-spacing: 3px !important;
        text-transform: uppercase;
        max-width: 250px;
        margin-bottom: 20px !important;
    }

    .ehs-zodiac-name {
        font-size: 70px !important;
        line-height: 46px !important;
        letter-spacing: -2px !important;
        margin-top: 10px !important;
        margin-bottom: 50px !important;
    }

    .ehs-zodiac-dates {
        color: #FFF;
        text-align: center;
        font-family: "IBM Plex Serif";
        font-size: 25px !important;
        font-style: normal;
        font-weight: 500 !important;
        line-height: 28px !important;
        margin-bottom: 10px !important;
    }

    .ehs-zodiac-description {
        color: #FFF;
        font-family: "IBM Plex Serif";
        font-size: 23px !important;
        font-style: italic;
        font-weight: 400;
        line-height: 25px !important;
        margin: 0 !important;
    }

    .ehs-zodiac-description p {
        color: #FFF;
        font-family: "IBM Plex Serif";
        font-size: 23px !important;
        font-style: italic;
        font-weight: 400;
        line-height: 25px !important;
    }

    /* Social share buttons mobile */
    .ehs-zodiac-social-section {
        margin: 15px 0 15px 0;
    }

    .elegant-share-buttons {
        gap: 20px;
    }

    .elegant-share-btn {
        width: 40px;
        height: 40px;
    }

    .elegant-share-btn svg {
        width: 20px;
        height: 20px;
    }

    .ehs-zodiac-carousel-section-fullwidth {
        padding: 30px 0 60px;
    }

    .ehs-zodiac-carousel-label {
        color: #FFF;
        text-align: center;
        font-family: "Reddit Sans";
        font-size: 15px;
        font-style: normal;
        font-weight: 800;
        line-height: 21px;
        letter-spacing: 3px;
        text-transform: uppercase;
        margin: 0 auto 40px auto;
        max-width: 250px;
    }

    .ehs-zodiac-najnovije-section {
        padding: 0;
        border-top: none !important;
        box-shadow: none !important;
    }

    /* Horoscope Images Grid - Mobile */
    .ehs-zodiac-horoscope-images-grid {
        padding: 60px 20px;
        border-bottom: none !important;
        box-shadow: none !important;
    }

    .ehs-zodiac-horoscope-images-grid .ehs-container {
        grid-template-columns: 1fr 1fr;
        gap: 23px;
    }

    .ehs-zodiac-horoscope-images-grid .ehs-grid-weekly .ehs-grid-image {
        background-position: calc(50% - 50px) center;
    }

    .ehs-zodiac-horoscope-images-grid .ehs-grid-label {
        max-width: 140px !important;
    }
}
