/* ============================================================
   photoshoptutorials.tv  style.css
   Dark Creative theme. Navy base, purple-pink gradient accents.
   ============================================================ */

/* 1. Reset and base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #0a0a14;
    color: #f5f5f7;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* 2. Typography */
h1, h2, h3, h4 { color: #f5f5f7; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.25rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; }
p { color: #cccdd6; }

.eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: #a855f7; }
.subtitle { color: #a1a1b3; font-size: 1.1rem; }

/* 3. Container */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* 4. Brand wordmark */
.brand { display: inline-block; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1; }
.brand-photoshop { color: #ffffff; }
.brand-tutorials { background: linear-gradient(90deg, #a855f7, #ec4899); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* 5. Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 10, 20, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid #1e1e3a; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; }
.nav-list { display: flex; gap: 1.5rem; align-items: center; }
.nav-list a { color: #cccdd6; font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.nav-list a:hover { color: #ec4899; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem; flex-direction: column; gap: 4px; }
.nav-toggle-bar { display: block; width: 24px; height: 2px; background: #f5f5f7; transition: transform 0.2s; }

/* 6. Buttons */
.btn { display: inline-block; padding: 0.85rem 1.5rem; border-radius: 6px; font-weight: 700; font-size: 0.95rem; cursor: pointer; border: 0; text-align: center; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn-primary { background: linear-gradient(90deg, #a855f7, #ec4899); color: #ffffff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -8px rgba(168, 85, 247, 0.45); }
.btn-secondary { background: transparent; color: #f5f5f7; border: 1px solid #1e1e3a; }
.btn-secondary:hover { border-color: #ec4899; color: #ec4899; }
.btn:disabled, .btn.disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; }

/* 7. Hero */
.hero { position: relative; padding: clamp(3rem, 8vw, 6rem) 0; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 75% 25%, rgba(124, 58, 237, 0.25), transparent 50%); pointer-events: none; }
.hero-inner { position: relative; max-width: 720px; }
.hero h1 { margin: 0.5rem 0 1rem; }
.hero p.subtitle { max-width: 560px; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* 8. Lead magnet strip */
.lead-magnet { background: linear-gradient(135deg, #13132a 0%, #1a1a3a 100%); border: 1px solid #1e1e3a; border-radius: 12px; padding: clamp(1.5rem, 3vw, 2.25rem); margin: 2rem 0; }
.lead-magnet-grid { display: grid; gap: 1.5rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 768px) { .lead-magnet-grid { grid-template-columns: 1.2fr 1fr; } }
.lead-magnet h2 { margin: 0.25rem 0 0.5rem; }
.email-form { display: grid; gap: 0.5rem; grid-template-columns: 1fr; }
@media (min-width: 480px) { .email-form { grid-template-columns: minmax(0, 1fr) auto; } }
.email-form .btn { white-space: nowrap; }
.email-input { flex: 1; padding: 0.85rem 1rem; background: #0f0f1f; border: 1px solid #1e1e3a; border-radius: 6px; color: #f5f5f7; font-family: inherit; font-size: 0.95rem; }
.email-input:focus { outline: none; border-color: #a855f7; box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.3); }
.opt-in { font-size: 0.8rem; color: #a1a1b3; margin-top: 0.5rem; display: flex; gap: 0.5rem; align-items: flex-start; }
.opt-in input { margin-top: 0.2rem; }

/* 9. Cards (tutorial / guide) */
.section { padding: 3rem 0; }
.section-header { margin-bottom: 2rem; display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.section-header h2 { margin: 0.25rem 0 0; }
.grid-3 { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: 1fr 1fr 1fr; } }

.card { background: #13132a; border: 1px solid #1e1e3a; border-radius: 10px; overflow: hidden; transition: transform 0.2s ease, border-color 0.2s ease; position: relative; }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #a855f7, #ec4899); }
.card:hover { transform: translateY(-3px); border-color: #2a2a4a; }
.card-thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #1e1e3a, #2a2a4a); display: flex; align-items: center; justify-content: center; color: #6b6b85; font-size: 0.8rem; }
.card-body { padding: 1.25rem; }
.card-category { display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #a855f7; margin-bottom: 0.5rem; }
.card-body h3 { font-size: 1.1rem; margin-bottom: 0.5rem; line-height: 1.3; }
.card-body p { font-size: 0.9rem; color: #a1a1b3; }
.card-meta { color: #6b6b85; font-size: 0.8rem; margin-top: 0.75rem; }

/* 10. Affiliate placeholder */
.affiliate-placeholder { background: #13132a; border: 1px dashed #2a2a4a; border-radius: 10px; padding: 1.5rem; text-align: center; margin: 2rem 0; }
.affiliate-placeholder .label { display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: #ec4899; margin-bottom: 0.5rem; }
.affiliate-placeholder h4 { margin-bottom: 0.5rem; }
.affiliate-placeholder p { font-size: 0.9rem; margin-bottom: 1rem; }

/* 11. AdSense placeholder */
.ad-placeholder { background: #0f0f1f; border: 1px dashed #1e1e3a; border-radius: 6px; color: #4a4a60; font-size: 0.75rem; text-align: center; padding: 1rem; margin: 2rem 0; }
.ad-leaderboard { min-height: 90px; display: flex; align-items: center; justify-content: center; }
.ad-rectangle { min-height: 250px; max-width: 300px; margin: 2rem auto; display: flex; align-items: center; justify-content: center; }

/* 12. Tutorial body */
.tutorial-header { padding: 2.5rem 0 1rem; }
.tutorial-meta { color: #6b6b85; font-size: 0.85rem; margin-top: 0.75rem; }
.tutorial-body { max-width: 760px; margin: 0 auto; }
.tutorial-body p { margin-bottom: 1.25rem; }
.tutorial-body h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.tutorial-step { margin-bottom: 2.5rem; }
.tutorial-step h3 { margin-bottom: 0.75rem; color: #a855f7; }
.tutorial-step .step-image { background: #13132a; border: 1px solid #1e1e3a; border-radius: 8px; aspect-ratio: 16 / 10; margin-bottom: 1rem; display: flex; align-items: center; justify-content: center; color: #4a4a60; font-size: 0.8rem; }
.tutorial-tip { background: linear-gradient(135deg, #1a1a3a, #13132a); border-left: 3px solid #06b6d4; padding: 1.25rem 1.5rem; border-radius: 6px; margin: 2rem 0; }
.tutorial-tip h4 { color: #06b6d4; margin-bottom: 0.5rem; }

/* 13. Guide / comparison table */
.compare-table { width: 100%; border-collapse: collapse; margin: 2rem 0; background: #13132a; border-radius: 10px; overflow: hidden; }
.compare-table th, .compare-table td { padding: 1rem; text-align: left; border-bottom: 1px solid #1e1e3a; }
.compare-table th { background: #1a1a3a; font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; color: #a1a1b3; }
.compare-table td { font-size: 0.95rem; vertical-align: top; }
.compare-table tr:last-child td { border-bottom: 0; }

/* 14. Footer */
.site-footer { margin-top: 4rem; background: #08080f; border-top: 1px solid #1e1e3a; }
.footer-inner { display: grid; gap: 2rem; padding: 3rem 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr; } }
.footer-col h4 { margin-bottom: 1rem; color: #f5f5f7; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col a { color: #a1a1b3; font-size: 0.9rem; }
.footer-col a:hover { color: #ec4899; }
.footer-tagline { color: #a1a1b3; font-size: 0.9rem; margin-top: 0.75rem; max-width: 380px; }
.footer-bottom { border-top: 1px solid #1e1e3a; padding: 1.5rem 0; }
.footer-trademark { color: #6b6b85; font-size: 0.75rem; margin-bottom: 0.4rem; }
.footer-copyright { color: #6b6b85; font-size: 0.75rem; }

/* 15. Mobile nav */
@media (max-width: 767px) {
    .nav-toggle { display: flex; }
    .nav-list { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #0a0a14; border-bottom: 1px solid #1e1e3a; flex-direction: column; gap: 0; padding: 1rem 1.25rem; }
    .nav-list.is-open { display: flex; }
    .nav-list li { padding: 0.5rem 0; }
}

/* 16. Disclosure box */
.disclosure-box { border: 1px dashed #f59e0b; background: rgba(245, 158, 11, 0.05); border-radius: 6px; padding: 0.85rem 1rem; font-size: 0.85rem; color: #a1a1b3; margin: 1.5rem 0; }
.disclosure-box strong { color: #f59e0b; }
