/**
 * RelaxModAPK - Download Page Styles
 * Conditionally loaded only on download pages.
 *
 * @package RelaxModAPK
 * @version 1.0.0
 */

/* ============================================
   DOWNLOAD PAGE - LIGHT THEME BASE
   ============================================ */
.download-page-content {
    background-color: #ffffff;
    color: #212529;
}

/* ============================================
   DOWNLOAD BOX (Green Accordion)
   ============================================ */
.download-box-lite {
    border: 1px solid #eef2ee !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-radius: 16px !important;
    background: #fff;
    overflow: hidden;
}

.download-box-header {
    background: linear-gradient(135deg, #7bbf3a, #5ea321) !important;
    padding: 18px 24px !important;
    font-size: 1.05rem;
}

/* ============================================
   DOWNLOAD ITEMS
   ============================================ */
.download-item {
    display: flex;
    align-items: center;
    padding: 20px 24px !important;
    transition: all 0.25s ease-in-out;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.download-item:last-child {
    border-bottom: none;
}

.download-item:hover {
    background-color: #f6fcf5 !important;
}

.download-item-icon {
    width: 48px;
    height: 48px;
    background: #e6f4ea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    color: #7bbf3a;
    flex-shrink: 0;
}

.download-item:hover .download-item-icon {
    transform: translateY(2px);
    background-color: #7bbf3a;
    color: #fff;
}

.download-item-icon i {
    font-size: 1.25rem;
}

.download-item-title {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #212529;
}

.download-item-sub {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 2px;
}

.download-item-size {
    font-size: 0.875rem;
    font-weight: 600;
    color: #7bbf3a;
    margin-left: auto;
    margin-right: 10px;
}

/* Trailing chevron transition */
.download-item .bi-chevron-right {
    transition: transform 0.2s ease;
}

.download-item:hover .bi-chevron-right {
    transform: translateX(3px);
    color: #7bbf3a !important;
}

.download-notes-card {
    background: #fbfbfb9c !important;
}

/* ============================================
   DOWNLOAD BUTTON PROTECTION
   ============================================ */
.rmapk-dl-btn {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* ============================================
   MANUAL PREPARING DOWNLOAD PROGRESS BAR
   ============================================ */
.rmapk-timer-wrap {
    margin-bottom: 8px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.rmapk-spinner {
    display: inline-block;
    width: 1.15rem;
    height: 1.15rem;
    border: 3px solid rgba(123, 191, 58, 0.25);
    border-radius: 50%;
    border-top-color: #7bbf3a;
    animation: rmapkSpin 0.8s linear infinite;
    flex-shrink: 0;
}

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

.rmapk-progress-container {
    width: 100%;
}

.rmapk-progress-track {
    position: relative;
    width: 100%;
    height: 16px;
    background-color: #eef5ee;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(123, 191, 58, 0.2);
}

.rmapk-progress-bar {
    position: relative;
    height: 100%;
    width: 0%;
    background: linear-gradient(135deg, #7bbf3a 0%, #5ea321 50%, #457e13 100%);
    border-radius: 50px;
    transition: width 0.08s linear;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(123, 191, 58, 0.4);
}

/* Animated diagonal stripes */
.rmapk-progress-stripes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.25) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0.25) 75%,
        transparent 75%,
        transparent
    );
    background-size: 24px 24px;
    animation: rmapkStripesMove 1.2s linear infinite;
}

@keyframes rmapkStripesMove {
    0% { background-position: 0 0; }
    100% { background-position: 24px 0; }
}

/* Subtle glowing pulse */
.rmapk-progress-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65));
    filter: blur(2px);
    animation: rmapkGlowPulse 1.5s infinite;
}

@keyframes rmapkGlowPulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* ============================================
   DOWNLOAD BUTTON ANIMATIONS
   ============================================ */
.rmapk-dl-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(123, 191, 58, 0.35) !important;
}

.rmapk-dl-btn:active {
    transform: translateY(0);
}

.rmapk-dl-reveal-anim {
    animation: rmapkRevealBtn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes rmapkRevealBtn {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   DOWNLOAD BREADCRUMBS
   ============================================ */
.download-breadcrumbs {
    font-size: 0.875rem;
}

.download-breadcrumbs .breadcrumbs-list {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 4px;
}

/* ============================================
   FINAL DOWNLOAD CARD
   ============================================ */
.final-download-card {
    background-color: #fbfbfb9c;
    border-color: #e0e0e0 !important;
}
