/* ===================================
   V8 Files Page Styles
   =================================== */

/* V8 Hero Section */
.v8-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.v8-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.v8-hero-banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v8-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
    z-index: 3;
    pointer-events: none;
}

.v8-hero-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    margin: auto;
    width: 90vw;
    z-index: 3;
    pointer-events: none;
}

.v8-hero-line {
    position: absolute;
    width: 1px;
    height: 100%;
    top: 0;
    left: 50%;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.v8-hero-line::after {
    content: '';
    display: block;
    position: absolute;
    height: 15vh;
    width: 100%;
    top: -50%;
    left: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 0, 98, 0.6) 75%, rgba(255, 0, 98, 0.8) 100%);
    animation: v8-drop 7s 0s infinite;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.4, 0.26, 0, 0.97);
}

.v8-hero-line:nth-child(1) {
    margin-left: -37.5%;
}

.v8-hero-line:nth-child(1)::after {
    animation-delay: 0s;
}

.v8-hero-line:nth-child(2) {
    margin-left: -12.5%;
}

.v8-hero-line:nth-child(2)::after {
    animation-delay: 1.5s;
}

.v8-hero-line:nth-child(3) {
    margin-left: 12.5%;
}

.v8-hero-line:nth-child(3)::after {
    animation-delay: 3s;
}

.v8-hero-line:nth-child(4) {
    margin-left: 37.5%;
}

.v8-hero-line:nth-child(4)::after {
    animation-delay: 4.5s;
}

@keyframes v8-drop {
    0% {
        top: -50%;
    }
    100% {
        top: 110%;
    }
}

.v8-video-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: 60px auto 0;
    background: #f8090900;
    border-radius: 20px;
    overflow: visible;
    z-index: 2;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    pointer-events: none;
}

/* Bottom Bar with Price and Purchase */
.v8-bottom-bar {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.bottom-bar-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    white-space: nowrap;
}

.price-box-small {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F8F8 100%);
    padding: 12px 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
     border-radius: 0.4vh;
}


.price-value {
    display: flex;
    align-items: baseline;
    gap: 4px;
    position: relative;
}

.currency {
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-pink) 0%, #E6005A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.amount {
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: -0.5px;
}

.btn-purchase-small {
    background: linear-gradient(135deg, var(--accent-pink) 0%, #E6005A 100%);
    color: #FFFFFF;
    border: none;
    padding: 18px 40px;
    border-radius: 0.4vh;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(255, 0, 98, 0.25);
}

.btn-purchase-small:hover {
    background: linear-gradient(135deg, #E6005A 0%, #CC0050 100%);
    transform: translateY(-3px) ;
}

.btn-purchase-small:hover::before {
    left: 100%;
}

.btn-purchase-small:hover::after {
    opacity: 1;
}

.btn-purchase-small:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 6px 16px rgba(255, 0, 98, 0.35);
}

.btn-purchase-small svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-purchase-small:hover svg {
    transform: translateX(2px);
}

/* V8 Link Image */
.v8-link-image {
    position: absolute;
    bottom: -44px;
    left: 55%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.v8-link-image:hover {
    transform: translateX(-50%) translateY(-5px);
}

.v8-link-image img {
    max-width: 400px;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.v8-link-image:hover img {
    opacity: 1;
}

/* Hide link image on mobile */
@media (max-width: 768px) {
    .v8-link-image {
        display: none;
    }
}

/* Scripts Section */
.scripts-section {
    padding: 120px 0;
    background: #FAFAFA;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-black);
    margin: 0 0 16px 0;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    margin: 0;
}

/* Scripts Controls */
.scripts-controls {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #FFFFFF;
    border: 2px solid #E8E8E8;
    border-radius: 12px;
    padding: 16px 20px;
    transition: all 0.3s ease;
}

.search-bar:focus-within {
    border-color: var(--accent-pink);
    box-shadow: 0 4px 16px rgba(255, 0, 98, 0.1);
}

.search-bar svg {
    color: var(--text-gray);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--text-black);
    background: transparent;
}

.search-input::placeholder {
    color: var(--text-gray);
}

.filter-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid #E8E8E8;
    background: #FFFFFF;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--accent-pink);
    color: var(--accent-pink);
}

.filter-btn.active {
    background: var(--accent-pink);
    border-color: var(--accent-pink);
    color: #FFFFFF;
}

/* Scripts Grid */
.scripts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.script-card {
    background: #FFFFFF;
    border: 1px solid #E8E8E8;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.script-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-pink);
}

.script-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: #000000;
}

.script-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.script-info {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.script-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-black);
    margin: 0;
    flex: 1;
}

.script-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.badge-police {
    background: rgba(52, 152, 219, 0.15);
    color: #2980b9;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.badge-ems {
    background: rgba(231, 76, 60, 0.15);
    color: #c0392b;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.badge-general {
    background: rgba(149, 165, 166, 0.15);
    color: #7f8c8d;
    border: 1px solid rgba(149, 165, 166, 0.3);
}

.badge-gangs {
    background: rgba(192, 57, 43, 0.15);
    color: #c0392b;
    border: 1px solid rgba(192, 57, 43, 0.3);
}

.badge-wars {
    background: rgba(211, 84, 0, 0.15);
    color: #d35400;
    border: 1px solid rgba(211, 84, 0, 0.3);
}

.badge-fun {
    background: rgba(241, 196, 15, 0.15);
    color: #f39c12;
    border: 1px solid rgba(241, 196, 15, 0.3);
}

.badge-judge {
    background: rgba(142, 68, 173, 0.15);
    color: #8e44ad;
    border: 1px solid rgba(142, 68, 173, 0.3);
}

.badge-cia {
    background: rgba(44, 62, 80, 0.15);
    color: #2c3e50;
    border: 1px solid rgba(44, 62, 80, 0.3);
}

.badge-swat {
    background: rgba(22, 160, 133, 0.15);
    color: #16a085;
    border: 1px solid rgba(22, 160, 133, 0.3);
}

.badge-uiux {
    background: rgba(155, 89, 182, 0.15);
    color: #9b59b6;
    border: 1px solid rgba(155, 89, 182, 0.3);
}

/* Why Buy Section */
.why-buy-section {
    padding: 120px 0;
    background: #FFFFFF;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.benefit-card {
    text-align: center;
    padding: 40px 24px;
    background: #FAFAFA;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    background: #FFFFFF;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-6px);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 0, 98, 0.08);
    border-radius: 16px;
    color: var(--accent-pink);
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    background: var(--accent-pink);
    color: #FFFFFF;
}

.benefit-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-black);
    margin: 0 0 12px 0;
}

.benefit-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0;
}

/* FAQ Section */
.faq-section {
    padding: 120px 0;
    background: #FAFAFA;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #FFFFFF;
    border: 1px solid #E8E8E8;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--accent-pink);
}

.faq-question {
    width: 100%;
    padding: 24px 28px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-black);
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--accent-pink);
}

.faq-question svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--accent-pink);
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 28px 24px;
    margin: 0;
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .scripts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bottom-bar-content {
        flex-direction: column;
    }
    
    .price-box-small {
        width: 100%;
        text-align: center;
    }
    
    .btn-purchase-small {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .v8-hero {
        padding-top: 60px;
    }
    
    .v8-video-container {
        height: calc(100vh - 240px);
    }
    
    .amount {
        font-size: 28px;
    }
    
    .currency {
        font-size: 16px;
    }
    
    .btn-purchase-small {
        padding: 16px 32px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .scripts-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        justify-content: center;
    }
}
