/*
Theme Name: QuickFrame Theme
Author: QuickFrame
Version: 40.0 (Safety Fixes)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

:root {
    --bg-body: #0b0e11;
    --bg-card: #151a21;
    --bg-input: #1e252f;
    --border: #2d3748;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
}

* { box-sizing: border-box; }
body { background: var(--bg-body); color: var(--text-main); font-family: 'Inter', sans-serif; margin: 0; padding: 0; line-height: 1.6; }
a { color: var(--text-main); text-decoration: none; transition: 0.2s; }
a:hover { color: var(--primary); }

/* --- HEADER --- */
header { background: rgba(11,14,17,0.95); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; padding: 15px 0; backdrop-filter: blur(10px); }
.container { max-width: 1250px; margin: 0 auto; padding: 0 20px; }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 800; font-size: 20px; display: flex; align-items: center; gap: 10px; color: #fff; }
.nav-menu { display: flex; gap: 20px; align-items: center; }
.nav-btn { background: var(--primary); padding: 8px 20px; border-radius: 6px; color: #fff !important; font-weight: 600; }
.nav-btn:hover { background: var(--primary-hover); }

/* --- HOMEPAGE & HERO --- */
.hero-wrapper { padding: 120px 20px; text-align: center; background: radial-gradient(circle at 50% 0%, #1e293b 0%, #0b0e11 80%); border-bottom: 1px solid #1e293b; }
.hero-title { font-size: 4rem; color: #fff; margin: 0 0 20px 0; line-height: 1.1; font-weight: 800; }
.text-gradient { background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: 1.3rem; color: var(--text-muted); margin-bottom: 30px; max-width: 700px; margin-left: auto; margin-right: auto; }

/* Buttons */
.btn-cta { background: #38bdf8; color: #0f172a !important; padding: 15px 40px; border-radius: 50px; font-weight: 800; font-size: 18px; display: inline-block; box-shadow: 0 0 20px rgba(56,189,248,0.4); border:none; cursor:pointer; }
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(56,189,248,0.6); }
.btn-secondary { background: rgba(255,255,255,0.05); color: #fff !important; padding: 15px 40px; border-radius: 50px; font-weight: 700; font-size: 18px; border: 1px solid rgba(255,255,255,0.1); display: inline-block; }

/* --- FEATURES & GRIDS --- */
.features-section { padding: 80px 20px; background: #0b0e11; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.feature-card { background: var(--bg-card); padding: 40px; border-radius: 20px; border: 1px solid #1e293b; transition: 0.3s; }
.feature-card:hover { border-color: #38bdf8; transform: translateY(-5px); }
.feature-card h3 { color: #fff; margin-top: 0; font-size: 1.5rem; }
.feature-card p { color: var(--text-muted); line-height: 1.6; margin-bottom: 0; }
.feature-icon { font-size: 40px; margin-bottom: 20px; display: block; }

/* --- VIDEO PAGE --- */
.video-page-container { max-width: 1250px; margin: 30px auto; padding: 0 20px; }
.video-grid { display: grid; grid-template-columns: 1fr 350px; gap: 30px; align-items: start; }
.player-wrapper { background: #000; border-radius: 12px; overflow: hidden; margin-bottom: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); border: 1px solid #333; }
.video-info-bar { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #2d3748; padding-bottom: 20px; margin-bottom: 20px; }
.video-title { margin: 0; font-size: 1.6rem; font-weight:700; }
.action-btn { background: #1e293b; color: #fff; border: 1px solid #334155; padding: 8px 15px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 600; }

/* Sidebar & Embed */
.mini-video { display: flex; gap: 12px; margin-bottom: 12px; padding: 10px; border-radius: 8px; transition: 0.2s; background: transparent; border: 1px solid transparent; }
.mini-video:hover { background: #1e293b; border-color: #334155; }
.mini-thumb { width: 140px; height: 80px; background-size: cover; background-position: center; border-radius: 6px; flex-shrink: 0; background-color: #000; }
.mini-info h4 { margin: 0; font-size: 14px; line-height: 1.4; color: #fff; font-weight: 600; }
.premium-upsell { background: linear-gradient(135deg, #1e1b4b, #4c1d95); padding: 25px; border-radius: 16px; text-align: center; margin-bottom: 30px; border: 1px solid #8b5cf6; }
.btn-upsell { display: inline-block; background: #fff; color: #4c1d95; padding: 10px 24px; border-radius: 50px; font-weight: 800; font-size: 14px; text-transform: uppercase; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 9999; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.modal-box { background: #1e293b; padding: 30px; border-radius: 12px; width: 90%; max-width: 500px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); border: 1px solid #334155; }
.modal-box textarea { background: #0f172a !important; border-color: #334155 !important; color: #94a3b8 !important; font-family: monospace; font-size: 12px; }

/* --- EARNINGS PAGE --- */
.earn-table-wrapper { margin: 50px auto; max-width: 900px; }
.earn-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--bg-card); border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 10px 40px rgba(0,0,0,0.3); }
.earn-table th { background: #1e293b; padding: 20px 25px; text-align: left; color: #fff; font-weight: 700; border-bottom: 1px solid var(--border); }
.earn-table td { padding: 20px 25px; border-bottom: 1px solid var(--border); color: #cbd5e1; font-size: 15px; }
.earn-table tr:last-child td { border-bottom: none; }
.rate-highlight { color: #4ade80; font-weight: 800; font-size: 1.1rem; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; }
.faq-box { background: var(--bg-card); padding: 30px; border-radius: 12px; border: 1px solid var(--border); }

/* --- GLOBAL FORM STYLES (SAFE MODE) --- */
/* Excludes checkboxes and radios to prevent them from stretching 100% width */
input:not([type="checkbox"]):not([type="radio"]), 
textarea, 
select {
    width: 100%; 
    padding: 12px 15px;
    background-color: var(--bg-input) !important;
    border: 1px solid var(--border) !important;
    color: #fff !important;
    border-radius: 8px;
    outline: none;
    margin-bottom: 15px;
    display: block;
}
input:focus { border-color: var(--primary) !important; }

/* --- LEGAL & DEFAULT --- */
body.page-template-default .entry-content { max-width: 800px; margin: 60px auto; background: var(--bg-card); padding: 60px; border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
body.page-template-default .entry-title { text-align: center; font-size: 3rem; margin-top: 40px; }
footer { border-top: 1px solid #1e293b; padding: 40px 0; margin-top: 50px; background: #0b0e11; text-align: center; color: #64748b; }

/* --- RESPONSIVE --- */
@media(max-width: 900px) {
    .video-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.5rem; }
    .faq-grid { grid-template-columns: 1fr; }
    .earn-table th, .earn-table td { padding: 15px; font-size: 13px; }
    body.page-template-default .entry-content { padding: 30px; margin: 30px 20px; }
}
/* --- LOCKED SCREEN & PPV --- */
.locked-screen {
    position: relative;
    width: 100%;
    height: 100%; /* Fills the player wrapper */
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.locked-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(11, 14, 17, 0.85); /* Dark tint */
    backdrop-filter: blur(15px); /* Heavy Blur */
    z-index: 1;
}

.locked-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 30px;
    max-width: 400px;
    background: rgba(0,0,0,0.4);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.locked-price {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 10px 0 20px 0;
    color: #fff;
    text-shadow: 0 0 20px rgba(56,189,248,0.5);
}

.btn-unlock {
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 800;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    margin-bottom: 15px;
    box-shadow: 0 0 20px rgba(56,189,248,0.4);
    transition: 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-unlock:hover { transform: scale(1.05); box-shadow: 0 0 30px rgba(56,189,248,0.6); }

.btn-premium-outline {
    background: transparent;
    border: 2px solid #a855f7;
    color: #fff;
    padding: 12px 20px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    display: block;
    text-decoration: none;
}
.btn-premium-outline:hover { background: rgba(168, 85, 247, 0.1); color: #fff; box-shadow: 0 0 15px rgba(168, 85, 247, 0.3); }