/*
  Site-wide stylesheet for the Pip's Reading Rocket pages (privacy-policy.html et al.),
  carried over from the sibling site (infinitycoloringbook.com) skeleton.

  NOTE on fonts: the 'Fredoka' family below is intentionally NOT loaded from
  Google Fonts (remote webfonts send every visitor's IP to Google — GDPR
  exposure per LG München I 2022, and it would contradict the privacy policy's
  own content). Until Fredoka woff2 files are self-hosted next to this file
  with @font-face rules, the pages render with the system sans-serif fallback.
  OWNER: self-host Fredoka here if the brand font is wanted; never re-add the
  fonts.googleapis.com links.
*/
:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --text-dark: #2C3E50;
    --text-light: #5A6C7D;
    --background: #FFF5F5;
    --white: #FFFFFF;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

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

body {
    font-family: 'Fredoka', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: linear-gradient(180deg, #FFF5F5 0%, #FFE6F7 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.logo {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: 0.3s;
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 30px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--text-dark);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.2rem;
}

.apple-logo {
    width: 24px;
    height: 24px;
}

.google-play-logo {
    width: 24px;
    height: 24px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* iPad Mockup */
.ipad-mockup {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    z-index: 100;
}

.ipad-mockup-small {
    position: relative;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    z-index: 100;
}

.ipad-device {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 10;
    opacity: 1;
}

.screen-content {
    position: absolute;
    top: 6.5%;
    left: 6%;
    right: 6%;
    bottom: 6.5%;
    overflow: hidden;
    border-radius: 20px;
    background: #000;
    z-index: 101;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    z-index: 10;
    position: relative;
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    font-size: 3rem;
    opacity: 0.3;
    animation: float-random 20s infinite ease-in-out;
    z-index: 1;
}

.shape-1 { top: 20%; left: 10%; animation-delay: 0s; }
.shape-2 { top: 60%; right: 10%; animation-delay: 2s; }
.shape-3 { bottom: 20%; left: 20%; animation-delay: 4s; }
.shape-4 { top: 40%; right: 30%; animation-delay: 6s; }
.shape-5 { bottom: 40%; right: 20%; animation-delay: 8s; }

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    animation: wiggle 2s ease-in-out infinite;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Screenshots Section */
.screenshots {
    padding: 80px 0;
    background: linear-gradient(180deg, #FFE6F7 0%, #FFF5F5 100%);
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.screenshot-item {
    transition: transform 0.3s ease;
    position: relative;
    z-index: 10;
    opacity: 1;
}

.screenshot-item:hover {
    transform: scale(1.05);
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: var(--gradient-3);
    text-align: center;
    color: var(--white);
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-copyright {
    opacity: 0.7;
}

/* Animations */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes float-random {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg); 
    }
    25% { 
        transform: translate(30px, -30px) rotate(90deg); 
    }
    50% { 
        transform: translate(-20px, -50px) rotate(180deg); 
    }
    75% { 
        transform: translate(-40px, -20px) rotate(270deg); 
    }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(3deg); }
    75% { transform: rotate(-3deg); }
}

/* Support Page Styles */
.support-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    text-align: center;
}

.support-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.support-content {
    padding: 60px 0;
    background: var(--white);
}

.support-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.support-card h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.support-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.email-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.email-link:hover {
    border-bottom-color: var(--primary-color);
}

/* Legal Document Styles */
.legal-content {
    padding: 60px 0;
    background: var(--white);
}

.legal-document {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.8;
    color: #333;
}

.legal-document h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
    color: var(--text-dark);
    font-weight: 600;
}

.legal-document .last-updated {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-bottom: 40px;
    font-size: 0.95rem;
}

.legal-document h2 {
    font-size: 1.3rem;
    margin-top: 35px;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 600;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
}

.legal-document p {
    margin-bottom: 15px;
    text-align: justify;
}

.legal-document ul {
    margin: 15px 0;
    padding-left: 30px;
}

.legal-document li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.legal-document strong {
    font-weight: 600;
    color: var(--text-dark);
}

.legal-hero {
    padding: 120px 0 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    text-align: center;
}

.legal-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.legal-hero p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Placeholder Screen */
.placeholder-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.placeholder-screen span {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

.placeholder-screen p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .screenshot-gallery {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* NO ADS Section & Banner Styles */
.no-ads-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #FFF5F5 0%, #FFE6F7 100%);
}

.no-ads-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.no-ads-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, -30px); }
}

.no-ads-icon {
    font-size: 60px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.no-ads-title {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    letter-spacing: 2px;
}

.no-ads-subtitle {
    color: rgba(255,255,255,0.95);
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.no-ads-content {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.no-ads-content p {
    color: #4a5568;
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 500;
}

.no-ads-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: left;
}

.no-ads-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #2d3748;
    font-size: 1rem;
    font-weight: 500;
}

.check-mark {
    color: #48bb78;
    font-size: 1.3rem;
    font-weight: bold;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .no-ads-banner {
        padding: 30px 20px;
    }
    
    .no-ads-title {
        font-size: 2.2rem;
    }
    
    .no-ads-subtitle {
        font-size: 1.1rem;
    }
    
    .no-ads-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn-primary {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .no-ads-title {
        font-size: 1.8rem;
    }
    
    .no-ads-subtitle {
        font-size: 1rem;
    }
}