/* ========================================
   WORKBOOK THEONE - CUSTOM STYLES
   (Tailwind CSS is loaded via CDN)
======================================== */

/* Base styles & Utilities */
body { 
    font-family: 'Inter', sans-serif; 
    -webkit-font-smoothing: antialiased; 
}

.font-montserrat { 
    font-family: 'Montserrat', sans-serif !important; 
}

.font-manrope { 
    font-family: 'Manrope', sans-serif !important; 
}

/* Custom Scrollbar */
::-webkit-scrollbar { 
    width: 6px; 
}

::-webkit-scrollbar-track { 
    background: #f5f5f5; 
}

::-webkit-scrollbar-thumb { 
    background: #d4d4d4; 
    border-radius: 3px; 
}

::-webkit-scrollbar-thumb:hover {
    background: #a3a3a3;
}

/* Accordion Animation */
details > summary { 
    list-style: none; 
}

details > summary::-webkit-details-marker { 
    display: none; 
}

details[open] summary ~ * {
    animation: sweep .3s ease-in-out;
}

@keyframes sweep {
    0%    {opacity: 0; transform: translateY(-10px)}
    100%  {opacity: 1; transform: translateY(0)}
}

/* Sticky Bar Transitions */
.sticky-bar-hidden { 
    transform: translateY(100%); 
}

.sticky-bar-visible { 
    transform: translateY(0); 
}

/* Portfolio hidden items */
#portfolio-grid .portfolio-item-hidden {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

#portfolio-grid .portfolio-item-visible {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    animation: fadeIn 0.3s ease-in;
}

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

/* Portfolio text container - sticky positioning */
@media (min-width: 768px) {
    .portfolio-text-container {
        position: sticky;
        top: 6rem; /* 24 * 0.25rem = 6rem */
        align-self: flex-start;
    }
}

/* Polished Gold CTA Button */
.cta-gold {
    background-image: url('/assets/images/landingpage TheOne/Gold.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 
        0 4px 15px rgba(255, 215, 0, 0.4),
        0 0 20px rgba(255, 215, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    pointer-events: none;
}

.cta-gold:hover {
    box-shadow: 
        0 6px 20px rgba(255, 215, 0, 0.6),
        0 0 30px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.cta-gold span,
.cta-gold {
    position: relative;
    z-index: 1;
}

/* Adjust sticky bar when consent banner is visible */
#consent-banner.show ~ #sticky-bar,
body:has(#consent-banner.show) #sticky-bar {
    bottom: 120px; /* Adjust based on banner height */
    transition: bottom 0.3s ease;
}

/* Ensure consent banner is above sticky bar */
#consent-banner {
    z-index: 10000 !important;
}

#consent-modal {
    z-index: 10001 !important;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.25rem;
}

.lang-btn {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: #737373;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background: #f5f5f5;
    color: #171717;
}

.lang-btn.active {
    background: #171717;
    color: #fff;
}

.lang-btn.active:hover {
    background: #262626;
}

/* Sticky bar countdown - stała szerokość, nie rusza innymi elementami */
#sticky-countdown,
#sticky-countdown-mobile,
#final-countdown,
.sticky-countdown-fixed {
    white-space: nowrap;
    display: inline-block;
    background: transparent !important;
    /* Stała szerokość - zapobiega przesuwaniu */
    min-width: 180px;
    width: 180px;
    text-align: center;
    /* Font z równą szerokością cyfr */
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
}

/* Mobile sticky bar - wyższy pasek */
@media (max-width: 767px) {
    #sticky-bar {
        padding-top: 16px;
        padding-bottom: 16px;
        min-height: 100px;
    }
}

/* Sticky bar text - dokładnie dwie linie, niezależny od zegara */
#sticky-bar .sticky-text-wrapper,
#sticky-bar [data-i18n="stickyText"] {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    line-height: 1.3;
    text-align: right;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    vertical-align: middle;
    hyphens: auto;
    /* Wymuszenie dokładnie 2 linii */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* Stała pozycja - nie przesuwa się */
    position: relative;
    /* Dodatkowy padding z prawej strony aby nie najeżdżał na ikonę */
    padding-right: 8px;
    /* Mniejszy font dla dłuższych tekstów (FR, IT, ES) */
    font-size: 0.875rem;
}
