/**
 * Oak Royal Custom Styles
 * @package oakroyal
 */

/* ========================================
   TICKER ANIMATION
   ======================================== */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-content {
    display: inline-flex;
    animation: ticker 30s linear infinite;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.ticker-content:hover {
    animation-play-state: paused;
}

/* ========================================
   SCROLL INDICATOR STYLES
   ======================================== */
.scroll-indicator {
    position: relative;
    width: 200px;
    height: 200px;
    cursor: pointer;
}

.scroll-indicator .circular-text {
    position: absolute;
    top: 0;
    left: 0;
    animation: rotate 10s linear infinite;
}

.circular-text-path {
    fill: white;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.scroll-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background-color: #00ff88;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.scroll-indicator:hover .scroll-circle {
    background-color: #00dd77;
    transform: translate(-50%, -50%) scale(1.1);
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .scroll-indicator {
        width: 150px;
        height: 150px;
    }

    .circular-text-path {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .scroll-circle {
        width: 55px;
        height: 55px;
    }
}

/* ========================================
   SMALL SCROLL INDICATOR
   ======================================== */
.scroll-indicator-small {
    position: relative;
    cursor: pointer;
}

.scroll-indicator-small .circular-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: rotate 10s linear infinite;
}

.circular-text-path-dark {
    fill: #000000;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.circular-text-path-light {
    fill: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-indicator-small .scroll-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: #00ff88;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.scroll-indicator-small:hover .scroll-circle {
    background-color: #00dd77;
    transform: translate(-50%, -50%) scale(1.1);
}

/* ========================================
   GALLERY STYLES
   ======================================== */
.gallery-scroll {
    overflow: hidden;
    white-space: nowrap;
}

.gallery-track {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    animation: scroll-left 80s linear infinite;
    min-height: 350px;
}

.gallery-track-reverse {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    animation: scroll-right 80s linear infinite;
    min-height: 350px;
}

.gallery-item {
    width: 400px;
    max-height: 450px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(26,47,79,0.5) 100%);
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(0, 255, 136, 0.1);
}

.gallery-item img {
    transition: all 0.5s ease;
    border-radius: 1rem;
    max-width: 100%;
    max-height: 450px;
    object-fit: contain;
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

.gallery-track:hover,
.gallery-track-reverse:hover {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .gallery-track,
    .gallery-track-reverse {
        min-height: 250px;
    }

    .gallery-item {
        width: 280px;
        max-height: 350px;
    }

    .gallery-item img {
        max-height: 350px;
    }
}

/* ========================================
   UTILITIES
   ======================================== */
.bg-primary {
    background-color: #00ff88;
}

.text-primary {
    color: #00ff88;
}

.bg-dark {
    background-color: #0a1628;
}

.bg-dark-secondary {
    background-color: #1a2f4f;
}

/* Smooth transitions */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    transition: all 0.3s ease;
}

/* ========================================
   CART NOTIFICATION ANIMATIONS
   ======================================== */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.animate-slide-in {
    animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.animate-slide-out {
    animation: slideOutRight 0.3s ease-in-out;
}

/* Cart notification responsive */
@media (max-width: 640px) {
    #cart-notification > div {
        top: 5rem !important;
        left: 0.5rem !important;
        right: 0.5rem !important;
    }

    /* Stack buttons vertically on mobile */
    #cart-notification .flex-col {
        width: 100%;
    }

    /* Ensure text doesn't overflow */
    #cart-notification .line-clamp-2 {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* Tablet adjustments */
@media (min-width: 641px) and (max-width: 1024px) {
    #cart-notification > div {
        max-width: 24rem;
    }
}
