/**
 * Elegant Igra Darivanja Styles
 * Version: 1.0.0
 * Author: Darko Ivanec
 * Company: Digitalni Svemir
 */

/* ============================================
   WRAPPER
   ============================================ */
.elegant-igra-darivanja-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 0px auto !important;
    padding: 0 23px !important;
    box-sizing: border-box;
}

/* Mobile only - keep centering and max-width */
@media (max-width: 767px) {
    .elegant-igra-darivanja-wrapper {
        max-width: 1200px;
        margin: 0 auto !important;
    }
}

/* ============================================
   CARD
   ============================================ */
.eig-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 600px;
    overflow: hidden;
    text-decoration: none !important;
    cursor: pointer;
}

.eig-card:hover {
    text-decoration: none !important;
}

.eig-card:focus {
    outline: none;
    text-decoration: none !important;
}

/* ============================================
   BACKGROUND & GRADIENT
   ============================================ */
.eig-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.eig-bg-mobile,
.eig-bg-desktop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Gradient Overlay - 50% black overlay across entire image */
.eig-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.50) 0%, rgba(0, 0, 0, 0.50) 100%);
}

/* Mobile: Show mobile background */
@media (max-width: 999px) {
    .eig-bg-mobile {
        display: block;
    }

    .eig-bg-desktop {
        display: none;
    }
}

/* Desktop: Show desktop background */
@media (min-width: 1000px) {
    .eig-bg-mobile {
        display: none;
    }

    .eig-bg-desktop {
        display: block;
    }
}

/* ============================================
   CONTENT
   ============================================ */
.eig-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 40px 20px;
    width: 100%;
    max-width: 400px;
    text-align: center !important;
}

/* ============================================
   SVG ICON
   ============================================ */
.eig-icon {
    width: 84px;
    height: 84px;
    flex-shrink: 0;
}

.eig-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Ensure icon is white */
}

/* ============================================
   TITLE "IGRA DARIVANJA"
   ============================================ */
.eig-title {
    color: #FFF !important;
    text-align: center !important;
    font-family: 'DM Serif Text', Georgia, serif !important;
    font-size: 45px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 45px !important;
    letter-spacing: 1.35px !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    padding: 10px 0px 40px 0px !important;
    width: 100%;
    max-width: 305px;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
}

/* ============================================
   BUTTON "ZAIGRAJ"
   ============================================ */
.eig-button-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.eig-button {
    display: inline-flex !important;
    padding: 13px 30px !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    border-radius: 20px !important;
    background: #D7B875 !important;
    border: none !important;
    box-shadow: none !important;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    text-decoration: none !important;
}

.eig-button:hover {
    background: #C2A05F !important;
    transform: translateY(-2px) scale(1.05);
}

.eig-button-text {
    color: #000 !important;
    text-align: center !important;
    font-family: "Reddit Sans", sans-serif !important;
    font-size: 17px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: 17px !important; /* 100% */
    letter-spacing: 3.4px !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Mobile adjustments */
@media (max-width: 767px) {
    .eig-card {
        min-height: 469px;
    }

    .eig-icon {
        width: 64px;
        height: 64px;
    }

    .eig-content {
        gap: 24px;
        padding: 30px 20px;
    }
}

/* Tablet and Desktop - Two column layout with fixed height */
@media (min-width: 768px) {
    /* Override WP Bakery global margin-bottom on wrapper */
    .wpb_wrapper > .elegant-igra-darivanja-wrapper {
        margin-bottom: 0 !important;
    }

    .elegant-igra-darivanja-wrapper {
        max-width: none !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .eig-card {
        min-height: 550px;
        height: 550px;
        width: 100%;
    }
}

/* Desktop specific styles (1000px+) */
@media (min-width: 1000px) {
    /* Content wrapper - wider on desktop to fit title in one line */
    .eig-content {
        max-width: none !important;
        width: 100% !important;
        padding: 40px 40px !important;
    }

    /* Icon - Desktop size from Figma */
    .eig-icon {
        width: 110.301px;
        height: 110.301px;
        flex-shrink: 0;
        aspect-ratio: 110.30 / 110.30;
    }

    /* Title - Desktop typography from Figma */
    .eig-title {
        color: #FFF !important;
        text-align: center !important;
        font-family: "DM Serif Text", serif !important;
        font-size: 55px !important;
        font-style: normal !important;
        font-weight: 400 !important;
        line-height: 45px !important;
        letter-spacing: 1.65px !important;
        text-transform: uppercase !important;
        white-space: nowrap !important;
        max-width: none !important;
    }

    /* Button text - Desktop typography from Figma */
    .eig-button-text {
        color: #000 !important;
        text-align: center !important;
        font-family: "Reddit Sans", sans-serif !important;
        font-size: 17px !important;
        font-style: normal !important;
        font-weight: 700 !important;
        line-height: 17px !important;
        letter-spacing: 3.4px !important;
        text-transform: uppercase !important;
    }
}

/* Desktop large */
@media (min-width: 1200px) {
    .elegant-igra-darivanja-wrapper {
        max-width: none;
    }
}
