/* NextPVR Dark Theme */

:root {
    --bg-primary: #0a0b10;
    --bg-secondary: #12131a;
    --bg-card: #1a1b25;
    --bg-card-hover: #222330;
    --accent: #0099ff;
    --accent-hover: #33adff;
    --accent-glow: rgba(0, 153, 255, 0.15);
    --text-primary: #e8e9ed;
    --text-secondary: #8b8d97;
    --text-muted: #5c5e66;
    --border-color: rgba(255, 255, 255, 0.06);
    --gradient-accent: linear-gradient(135deg, #0099ff, #0066cc);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Navbar */
.navbar {
    background: rgba(10, 11, 16, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 0;
    transition: background 0.3s;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-primary) !important;
    letter-spacing: -0.02em;
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}

.navbar-nav .nav-link:hover {
    color: var(--text-primary) !important;
}

.navbar-toggler {
    border-color: var(--border-color);
    padding: 0.4rem 0.65rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(232,233,237,0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-collapse {
    background: rgba(10, 11, 16, 0.95);
    border-radius: 0.5rem;
}

@media (min-width: 992px) {
    .navbar-collapse {
        background: transparent;
    }
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.hero .lead {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 2rem;
    font-weight: 400;
}

.hero .badge-free {
    display: inline-block;
    background: var(--accent-glow);
    color: var(--accent);
    border: 1px solid rgba(0, 153, 255, 0.2);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.04em;
}

/* Buttons */
.btn-accent {
    background: var(--gradient-accent);
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-accent:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(0, 153, 255, 0.25);
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--text-primary);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s, border-color 0.2s;
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

/* Screenshot carousel */
.screenshot-carousel {
    position: relative;
    max-width: 720px;
    margin: 3rem auto 0;
}

.screenshot-carousel img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: none;
}

.screenshot-carousel img.active {
    display: block;
}

.screenshot-caption {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.75rem;
    min-height: 1.5em;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
}

.carousel-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--text-muted);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.carousel-dots button.active {
    background: var(--accent);
    transform: scale(1.3);
}

/* Sections */
section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
}

section > .container {
    width: 100%;
}

.section-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Feature cards */
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    transition: background 0.2s, border-color 0.2s;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.1);
}

.feature-card .icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.2rem;
    color: var(--accent);
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* Alt section bg */
.bg-alt {
    background: var(--bg-secondary);
}

/* Platform download cards */
.platform-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    display: block;
    height: 100%;
}

.platform-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    color: var(--text-primary);
    transform: translateY(-2px);
    text-decoration: none;
}

.platform-card i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--accent);
}

.platform-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0;
}

/* Client sections */
.client-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    transition: border-color 0.2s;
}

.client-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.client-card img {
    width: 100%;
    object-fit: contain;
    border-bottom: 1px solid var(--border-color);
    background: #222222;
}

.client-card .card-body {
    padding: 1.5rem;
}

.client-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.client-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.client-card .btn-sm {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
}

/* About section */
.about-text {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Contact section */
.contact-section a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-section a:hover {
    color: var(--accent-hover);
}

/* Contact form modal */
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
}

.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

.form-control, .form-select {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
}

.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238b8d97' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.form-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.form-control:focus, .form-select:focus {
    background: var(--bg-primary);
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.15);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

/* Donate page */
.donate-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.donate-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.donate-card select {
    width: 100%;
    max-width: 300px;
}

.donate-card input[type="image"] {
    margin-top: 1rem;
    border-radius: 6px;
    transition: opacity 0.2s;
}

.donate-card input[type="image"]:hover {
    opacity: 0.85;
}

.gst-note {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Footer */
footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.8rem;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
}

footer a:hover {
    color: var(--text-primary);
}

/* Divider */
.divider {
    width: 50px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
    margin: 0 auto 1rem;
}

/* Responsive */
@media (max-width: 767px) {
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    section {
        padding: 60px 0;
    }

    section {
        min-height: auto;
    }

    .feature-card, .platform-card, .client-card, .donate-card {
        margin-bottom: 1rem;
    }
}

/* Hide reCAPTCHA badge (attribution text is inline on the page) */
.grecaptcha-badge {
    visibility: hidden !important;
}

/* Scroll hint chevron */
.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 2.5rem;
    text-decoration: none;
    animation: bounce 2s infinite;
    transition: color 0.2s;
}

.scroll-hint:hover {
    color: var(--accent);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(10px); }
    60% { transform: translateX(-50%) translateY(5px); }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}
