/* ===========================================
   RCMods Store - Components
   Reusable UI components
   =========================================== */

/* ============================================
   NAVBAR - Glassmorphism Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 700px;
    padding: 10px 20px;
    background: var(--gradient-navbar);
    border: 1.2px solid var(--color-border-light);
    border-radius: 50px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--shadow-sm);
    z-index: var(--z-navbar);
}

.navbar__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar__logo {
    display: flex;
    padding: var(--spacing-xs);
    background-color: var(--color-bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
}

.navbar__logo img {
    width: 28px;
    height: 28px;
}

.navbar__social {
    display: flex;
    align-items: center;
    padding: 2px 6px;
    background-color: var(--color-bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-full);
}

.navbar__link {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 10px;
    border-radius: 50%;
    transition: background-color var(--transition-slow),
        transform var(--transition-slow);
}

.navbar__link:hover {
    transform: scale(1.2);
    background-color: rgba(124, 77, 255, 0.15);
}

.navbar__link img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 17px 38px;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.4px;
    border-radius: var(--radius-full);
    border: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    transition: transform var(--transition-fast),
        box-shadow var(--transition-fast);
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-4px);
}

.btn:focus,
.btn:active {
    outline: none;
}

.btn--primary {
    color: var(--color-text-white);
    background: var(--gradient-primary);
    box-shadow: var(--shadow-lg);
}

.btn--primary:hover {
    box-shadow: 0 24px 50px rgba(108, 99, 255, 0.55);
}

.btn--secondary {
    color: var(--color-text-white);
    background: rgba(255, 255, 255, 0.02);
    border: 1.4px solid rgba(156, 163, 175, 0.55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.btn--cta {
    padding: 18px 40px;
    margin-top: var(--spacing-sm);
    align-self: flex-start;
    color: var(--color-text-white);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.4px;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.95), rgba(108, 99, 255, 0.95));
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast),
        box-shadow var(--transition-fast);
}

.btn--cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(124, 77, 255, 0.45);
}

.btn__arrow {
    transition: transform var(--transition-fast);
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.card {
    width: 380px;
    max-width: 100%;
    text-decoration: none;
    color: var(--color-text-white);
    transition: transform var(--transition-normal),
        box-shadow var(--transition-normal);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.card__glass {
    padding: var(--spacing-lg);
    background-color: var(--color-bg-card);
    border: 1.5px solid var(--color-border-subtle);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: border-color var(--transition-normal);
}

.card:hover .card__glass {
    border-color: var(--accent);
}

.card__image-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    filter: drop-shadow(var(--shadow-card));
}

.card__image-wrap img {
    height: 180px;
    border-radius: var(--radius-md);
    transition: transform var(--transition-slow);
}

.card:hover .card__image-wrap img {
    transform: scale(1.08);
}

.card__title {
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-h3);
    text-align: center;
}

.card__description {
    color: var(--color-text-gray);
    font-size: var(--font-size-small);
    line-height: var(--line-height-normal);
    text-align: center;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.tags__item {
    padding: 6px 12px;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--accent);
    background: color-mix(in srgb, var(--accent), transparent 90%);
    border: 1px solid color-mix(in srgb, var(--accent), transparent 70%);
    border-radius: var(--radius-sm);
}

/* Card Action Button */
.card__action {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xs);
    height: 50px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    transition: background var(--transition-normal),
        border-color var(--transition-normal);
}

.card:hover .card__action {
    background: var(--accent);
    border-color: transparent;
}

.card__action-arrow {
    transition: transform var(--transition-fast);
}

.card:hover .card__action-arrow {
    transform: translateX(4px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.footer__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: var(--color-text-gray);
    font-size: 14px;
    text-align: center;
    gap: var(--spacing-xs);
}

.mockup {
    position: absolute;
    cursor: zoom-in;
}

.mockup:first-child {
    left: 0;
    bottom: 0;
    z-index: 1;
}

.mockup:last-child {
    right: 0;
    bottom: 5px;
    z-index: 2;
}

.mockup img {
    border-radius: var(--radius-xl);
    pointer-events: none;
}

.mockup:first-child img {
    height: 420px;
}

.mockup:last-child img {
    height: 420px;
}

/* ============================================
   RESPONSIVE COMPONENTS
   ============================================ */
@media screen and (max-width: 600px) {
    .btn {
        padding: 14px 26px;
        font-size: var(--font-size-small);
    }

    .btn--cta {
        align-self: center;
    }

    .card {
        width: 100%;
    }

    .mockup {
        position: static;
        aspect-ratio: 9 / 19.5;
        width: 42%;
        max-width: 180px;
    }

    .mockup--back {
        transform: rotate(-5deg);
    }

    .mockup--front {
        transform: rotate(5deg);
    }

    .mockup img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

/* ============================================
   COUNTDOWN MODAL
   ============================================ */
.countdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.countdown-overlay.active {
    opacity: 1;
    visibility: visible;
}

.countdown-modal {
    text-align: center;
    padding: 60px 80px;
    background: var(--gradient-navbar);
    border: 1.5px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 80px rgba(124, 77, 255, 0.3);
    animation: modalPop 0.4s ease-out;
}

@keyframes modalPop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.countdown-modal__icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.countdown-modal__title {
    font-size: 28px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-white);
    margin-bottom: 30px;
}

.countdown-timer {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 30px;
}

.countdown-timer__circle {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.countdown-timer__bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
}

.countdown-timer__progress {
    fill: none;
    stroke: url(#gradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 408;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

.countdown-timer__number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    font-weight: var(--font-weight-black);
    color: var(--color-text-white);
}

.countdown-modal__text {
    color: var(--color-text-gray);
    font-size: 16px;
}

@media screen and (max-width: 600px) {
    .countdown-modal {
        padding: 40px 30px;
        margin: 20px;
    }

    .countdown-timer {
        width: 120px;
        height: 120px;
    }

    .countdown-timer__number {
        font-size: 40px;
    }
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    padding: 100px 20px;
    background: linear-gradient(180deg, transparent, rgba(124, 77, 255, 0.05));
}

.features-section__title {
    text-align: center;
    margin-bottom: 60px;
}

.features-section__title-text {
    font-size: 42px;
    font-weight: var(--font-weight-black);
    background: var(--gradient-hero-title);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-section__subtitle {
    color: var(--color-text-gray);
    font-size: 18px;
    margin-top: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: 32px 24px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: transform var(--transition-normal),
        border-color var(--transition-normal),
        box-shadow var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary-purple);
    box-shadow: 0 20px 40px rgba(124, 77, 255, 0.2);
}

.feature-card__icon {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.feature-card__title {
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-white);
    margin-bottom: 16px;
}

.feature-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-card__list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--color-text-gray);
    font-size: 14px;
    line-height: 1.6;
}

.feature-card__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-primary-purple);
    font-weight: bold;
}

@media screen and (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .features-section {
        padding: 60px 20px;
    }

    .features-section__title-text {
        font-size: 32px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 24px 20px;
    }
}

/* ============================================
   PACKAGES SECTION
   ============================================ */
.packages-section {
    padding: 100px 20px;
    background: radial-gradient(circle at 50% 0%, rgba(61, 220, 132, 0.08), transparent 60%);
}

.packages-section__title {
    text-align: center;
    margin-bottom: 20px;
}

.packages-section__title-text {
    font-size: 42px;
    font-weight: var(--font-weight-black);
    background: linear-gradient(135deg, #25D366, #3ddc84, #128C7E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.packages-section__subtitle {
    text-align: center;
    color: var(--color-text-gray);
    font-size: 18px;
    margin-bottom: 60px;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.package-card {
    padding: 32px 24px;
    background: var(--color-bg-card);
    border: 1.5px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    text-align: center;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    transition: transform var(--transition-normal),
        border-color var(--transition-normal),
        box-shadow var(--transition-normal);
    cursor: pointer;
}

.package-card:hover {
    transform: translateY(-10px);
    border-color: #3ddc84;
    box-shadow: 0 25px 50px rgba(61, 220, 132, 0.25);
}

.package-card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    background: linear-gradient(135deg, rgba(61, 220, 132, 0.2), rgba(37, 211, 102, 0.1));
    border: 2px solid rgba(61, 220, 132, 0.3);
    border-radius: 50%;
}

.package-card__name {
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-white);
    margin-bottom: 8px;
}

.package-card__desc {
    color: var(--color-text-gray);
    font-size: 14px;
    margin-bottom: 24px;
}

.package-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-white);
    background: linear-gradient(135deg, #25D366, #3ddc84);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    position: relative;
    z-index: 10;
    text-decoration: none;
    transition: transform var(--transition-fast),
        box-shadow var(--transition-fast);
}

.package-card__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(61, 220, 132, 0.4);
}

@media screen and (max-width: 900px) {
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .packages-section {
        padding: 60px 20px;
    }

    .packages-section__title-text {
        font-size: 32px;
    }

    .packages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .package-card {
        padding: 28px 20px;
    }
}

/* ============================================
   SCREENSHOT GALLERY SECTION
   ============================================ */
.gallery-section {
    padding: 100px 20px;
    background: linear-gradient(180deg, transparent, rgba(124, 77, 255, 0.03), transparent);
}

.gallery-section__title {
    text-align: center;
    margin-bottom: 60px;
}

.gallery-section__title-text {
    font-size: 42px;
    font-weight: var(--font-weight-black);
    background: var(--gradient-hero-title);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gallery-section__subtitle {
    color: var(--color-text-gray);
    font-size: 18px;
    margin-top: 16px;
}

.gallery-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.gallery-slider__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.gallery-slider__arrow:hover {
    background: rgba(124, 77, 255, 0.3);
    border-color: var(--color-primary-purple);
    transform: scale(1.1);
}

.gallery-slider__arrow svg {
    width: 24px;
    height: 24px;
    color: var(--color-text-white);
}

.gallery-slider__track-container {
    overflow: hidden;
    width: 100%;
    max-width: 700px;
}

.gallery-slider__track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
}

.gallery-slider__slide {
    flex: 0 0 calc(50% - 10px);
    cursor: pointer;
}

.gallery-slider__slide img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: contain;
    border-radius: var(--radius-lg);
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox__close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox__close svg {
    width: 24px;
    height: 24px;
    color: white;
}

.lightbox__content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox__content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    animation: lightboxZoom 0.3s ease;
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================
   ENHANCED RESPONSIVE DESIGN
   ============================================ */

/* Desktop (1024px and above) */
@media screen and (min-width: 1025px) {
    .card {
        width: 380px;
    }

    .gallery-item img {
        height: 450px;
    }
}

/* Tablet Landscape (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .card {
        width: 340px;
    }

    .card__glass {
        padding: var(--spacing-md);
    }

    .card__image-wrap img {
        height: 160px;
    }

    .gallery-section {
        padding: 80px 20px;
    }

    .gallery-section__title-text {
        font-size: 36px;
    }

    .gallery-item img {
        height: 380px;
    }
}

/* Tablet Portrait (480px - 768px) */
@media screen and (max-width: 768px) {
    .card {
        width: 320px;
    }

    .card__glass {
        padding: 20px;
    }

    .card__image-wrap img {
        height: 150px;
    }

    .card__title {
        font-size: var(--font-size-h4);
    }

    .card__description {
        font-size: 13px;
    }

    .gallery-section {
        padding: 60px 16px;
    }

    .gallery-section__title-text {
        font-size: 32px;
    }

    .gallery-section__subtitle {
        font-size: 16px;
    }

    .gallery-slider {
        gap: 12px;
    }

    .gallery-slider__slide img {
        height: 320px;
    }
}

@media screen and (max-width: 480px) {
    .card {
        width: 100%;
        max-width: 100%;
    }

    .card__glass {
        padding: 18px 16px;
    }

    .card__image-wrap {
        margin-bottom: 16px;
    }

    .card__image-wrap img {
        height: 140px;
    }

    .card__title {
        font-size: 18px;
        margin-bottom: var(--spacing-xs);
    }

    .card__description {
        font-size: 13px;
        line-height: 1.5;
    }

    .card__action {
        height: 44px;
        margin-top: 16px;
        font-size: 14px;
    }

    .tags {
        gap: 6px;
        margin-bottom: 12px;
    }

    .tags__item {
        padding: 5px 10px;
        font-size: 11px;
    }

    .gallery-section {
        padding: 50px 16px;
    }

    .gallery-section__title-text {
        font-size: 26px;
    }

    .gallery-section__subtitle {
        font-size: 14px;
        margin-top: 12px;
    }

    .gallery-slider {
        gap: 10px;
    }

    .gallery-slider__arrow {
        width: 40px;
        height: 40px;
    }

    .gallery-slider__arrow svg {
        width: 20px;
        height: 20px;
    }

    .gallery-slider__slide {
        flex: 0 0 100%;
    }

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