/**
 * RelaxModAPK - Additional Custom Styles
 *
 * @package RelaxModAPK
 */


/* ============================================
   SEARCH DROPDOWN STYLES
   ============================================ */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: var(--rm-bg-secondary);
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius-md);
    box-shadow: var(--rm-shadow-lg);
    z-index: var(--rm-z-dropdown);
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item:hover {
    background: var(--rm-bg-card-hover) !important;
}

.search-result-item:not(:last-child) {
    border-bottom: 1px solid var(--rm-border-light);
}

/* ============================================
   STAR RATING STYLES
   ============================================ */
.star-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--rm-warning);
    font-size: 0.85rem;
}

.star-rating .rating-number {
    margin-left: 6px;
    color: var(--rm-text-primary);
    font-weight: 600;
    font-size: var(--rm-font-size-sm);
}

/* ============================================
   MOD FEATURES BOX
   ============================================ */
.mod-features-box {
    background: var(--rm-bg-card);
    border: 1px solid var(--rm-border-light);
    border-radius: var(--rm-radius-lg);
    padding: var(--rm-spacing-xl);
    margin-bottom: var(--rm-spacing-xl);
}

.mod-features-box h3 {
    font-size: var(--rm-font-size-lg);
    font-weight: 700;
    margin-bottom: var(--rm-spacing-md);
    display: flex;
    align-items: center;
    gap: var(--rm-spacing-sm);
}

.mod-features-box .features-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--rm-spacing-sm);
}

.mod-features-box .feature-item {
    padding: 8px 12px;
    background: var(--rm-bg-elevated);
    border-radius: var(--rm-radius-sm);
    border-left: 3px solid var(--rm-accent);
}

.mod-features-box .feature-item i {
    color: var(--rm-accent);
    font-size: 0.9rem;
}

/* ============================================
   CATEGORY CARD HOVER
   ============================================ */
.category-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--rm-shadow-lg) !important;
    border-color: var(--rm-accent) !important;
}

/* ============================================
   HEADER ENHANCEMENTS
   ============================================ */
.site-header .header-search {
    position: relative;
}

/* Admin bar adjustment */
.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* ============================================
   COMMENTS STYLING
   ============================================ */
.comments-area {
    background: var(--rm-bg-card);
    border: 1px solid var(--rm-border-light);
    border-radius: var(--rm-radius-lg);
    padding: var(--rm-spacing-xl);
}

.comments-area .comments-title {
    font-size: var(--rm-font-size-xl);
    font-weight: 700;
    margin-bottom: var(--rm-spacing-lg);
    padding-bottom: var(--rm-spacing-sm);
    border-bottom: 1px solid var(--rm-border-light);
}

.comments-area .comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comments-area .comment {
    padding: var(--rm-spacing-md) 0;
    border-bottom: 1px solid var(--rm-border-light);
}

.comments-area .comment:last-child {
    border-bottom: none;
}

.comments-area .comment-author {
    display: flex;
    align-items: center;
    gap: var(--rm-spacing-sm);
    margin-bottom: var(--rm-spacing-sm);
}

.comments-area .comment-author img {
    border-radius: var(--rm-radius-circle);
    width: 36px;
    height: 36px;
}

.comments-area .comment-author .fn {
    font-weight: 600;
    color: var(--rm-text-primary);
}

.comments-area .comment-metadata {
    font-size: var(--rm-font-size-xs);
    color: var(--rm-text-muted);
    margin-bottom: var(--rm-spacing-sm);
}

.comments-area .comment-content p {
    color: var(--rm-text-secondary);
    line-height: 1.7;
}

.comments-area .reply a {
    font-size: var(--rm-font-size-xs);
    color: var(--rm-accent);
    font-weight: 500;
}

/* Comment Form */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--rm-bg-input);
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius-sm);
    color: var(--rm-text-primary);
    font-size: var(--rm-font-size-sm);
    font-family: var(--rm-font-family);
    transition: border-color var(--rm-transition-fast);
    margin-bottom: var(--rm-spacing-md);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--rm-accent);
    box-shadow: 0 0 0 3px var(--rm-accent-glow);
}

.comment-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
    font-size: var(--rm-font-size-sm);
    color: var(--rm-text-secondary);
}

.comment-form .form-submit .submit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: var(--rm-accent);
    color: var(--rm-text-on-accent);
    border: none;
    border-radius: var(--rm-radius-pill);
    font-size: var(--rm-font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--rm-transition-base);
}

.comment-form .form-submit .submit:hover {
    background: var(--rm-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 214, 143, 0.3);
}

/* ============================================
   WORDPRESS GALLERY OVERRIDES
   ============================================ */
.wp-block-gallery {
    gap: var(--rm-spacing-sm) !important;
}

.wp-block-gallery .wp-block-image {
    border-radius: var(--rm-radius-md);
    overflow: hidden;
}

/* ============================================
   WORDPRESS ALIGNMENT
   ============================================ */
.alignwide {
    margin-left: -5%;
    margin-right: -5%;
    max-width: 110%;
    width: 110%;
}

.alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {

    .site-header,
    .site-footer,
    .sidebar,
    .back-to-top,
    .mobile-menu,
    .mobile-menu-overlay,
    .category-nav,
    .breadcrumbs,
    .btn-download,
    .btn-outline,
    .download-box,
    .related-posts-section,
    .comments-area {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .post-content {
        background: none;
        border: none;
        padding: 0;
    }
}

/* ============================================
   REDUCED MOTION PREFERENCE
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .app-card:hover {
        transform: none;
    }
}

/* ============================================
   MOBILE STICKY FOOTER BAR
   ============================================ */
@media (max-width: 760px) {
    body {
        padding-bottom: 70px !important;
        /* Space for sticky footer */
    }

    .mobile-footer-navbar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 65px;
        background: #ffffff;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
        z-index: 9999;
        border-top: 1px solid #eeeeee;
        display: block !important;
    }

    .mobile-footer-inner {
        display: flex;
        justify-content: space-around;
        align-items: center;
        height: 100%;
        padding: 0 5px;
    }

    .mobile-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none !important;
        color: #888888;
        transition: all 0.2s ease;
        gap: 4px;
        background: none;
        border: none;
    }

    .mobile-nav-item i {
        font-size: 1.3rem;
        line-height: 1;
    }

    .mobile-nav-item span {
        font-size: 0.65rem;
        font-weight: 600;
        text-transform: capitalize;
    }

    .mobile-nav-item.active {
        color: #7bbf3a;
        /* LiteAPKs Green */
    }

    .mobile-nav-item:hover {
        color: #7bbf3a;
    }
}

/* Hide on Desktop */
@media (min-width: 761px) {
    .mobile-footer-navbar {
        display: none !important;
    }
}

/* ============================================
   SCREENSHOT LIGHTBOX
   ============================================ */
.rm-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rm-lightbox.active {
    display: flex;
    opacity: 1;
}

.rm-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rm-lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.rm-lightbox.active .rm-lightbox-img {
    transform: scale(1);
}

.rm-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.rm-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.rm-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    z-index: 10;
}

.rm-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.15);
}

.rm-lightbox-prev {
    left: -80px;
}

.rm-lightbox-next {
    right: -80px;
}

@media (max-width: 991px) {
    .rm-lightbox-prev { left: 10px; }
    .rm-lightbox-next { right: 10px; }
    .rm-lightbox-close { top: 20px; right: 20px; position: fixed; }
}

/* Lightbox items cursors */
.lightbox-trigger {
    cursor: zoom-in;
}