/* AFKPal Website Styles - iOS App Color Palette */

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

:root {
    /* iOS App Color Palette */
    --primary-bg: #261E40;           /* Dark purple/navy background */
    --card-bg: #332B4D;             /* Purple card background */
    --brand-blue: #66B3FF;          /* Light blue accent */
    --online-green: #33CC33;        /* Online status green */
    --text-light: #E6E6E6;          /* Light text */
    --text-muted: #999999;          /* Muted text */
    --secondary-bg: #1F1F1F;        /* Dark gray for cards */
    --border-color: rgba(102, 179, 255, 0.2); /* Brand blue with opacity */
    
    /* Additional colors for website */
    --gradient-start: #261E40;
    --gradient-end: #1A1528;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --hover-overlay: rgba(102, 179, 255, 0.1);
}

html {
    background: var(--gradient-end);
    min-height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    background-attachment: fixed;
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

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

/* Header */
.hero {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--card-bg) 100%);
    margin-bottom: 60px;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--brand-blue) 0%, #99CCFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.platform-notice {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--card-bg);
    padding: 12px 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: var(--text-light);
}

.notice-icon {
    font-size: 1.2rem;
}

/* Highlights Section */
.highlights-section {
    text-align: center;
    margin-bottom: 80px;
}

.highlights-section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: var(--text-light);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 20px;
    }
}

.highlight-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.highlight-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-blue);
    box-shadow: 0 8px 30px var(--shadow-color);
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(102, 179, 255, 0.1) 100%);
}

.highlight-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.highlight-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--brand-blue);
    line-height: 1.3;
}

.highlight-card p {
    color: var(--text-light);
    opacity: 0.9;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Download Section */
.download-section {
    text-align: center;
    margin-bottom: 80px;
}

.download-section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: var(--text-light);
}

.download-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 24px 32px;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
    min-width: 280px;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.download-btn:hover {
    transform: translateY(-2px);
    border-color: var(--brand-blue);
    box-shadow: 0 8px 30px var(--shadow-color);
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(102, 179, 255, 0.1) 100%);
}

.btn-icon {
    font-size: 2.5rem;
}

.btn-content {
    text-align: left;
}

.btn-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.btn-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Video Section */
.video-section {
    text-align: center;
    margin-bottom: 80px;
}

.video-section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: var(--text-light);
}

.video-container {
    margin: 0 auto;
    max-width: 800px;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 32px var(--shadow-color);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

/* Step Video */
.step-video {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.step-video h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--brand-blue);
    text-align: center;
}

/* Setup Section */
.setup-section {
    margin-bottom: 80px;
}

.setup-section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-light);
}

.step-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--shadow-color);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 32px;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(102, 179, 255, 0.1) 100%);
}

.step-number {
    background: var(--brand-blue);
    color: var(--primary-bg);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.step-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-light);
}

.step-content {
    padding: 0 32px 32px 32px;
}

.step-content p {
    margin-bottom: 16px;
    color: var(--text-light);
    opacity: 0.9;
}

.step-content ul {
    margin-left: 20px;
    color: var(--text-light);
    opacity: 0.9;
}

.step-content li {
    margin-bottom: 8px;
}

.step-content strong {
    color: var(--brand-blue);
    font-weight: 600;
}

/* FAQ Section */
.faq-section {
    margin-bottom: 80px;
}

.faq-section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-light);
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: between;
    align-items: center;
    font-weight: 500;
    transition: all 0.3s ease;
    background: var(--card-bg);
}

.faq-question:hover {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(102, 179, 255, 0.1) 100%);
}

.faq-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: var(--brand-blue);
    margin-left: auto;
}

.faq-item.active .faq-arrow {
    transform: rotate(90deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(102, 179, 255, 0.05);
}

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

.faq-answer p {
    color: var(--text-light);
    opacity: 0.9;
    line-height: 1.6;
}

.faq-answer a {
    color: var(--text-light);
    text-decoration: underline;
    opacity: 0.9;
}

.faq-answer a:hover {
    opacity: 1;
}

/* GitHub Link */
.github-link {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    z-index: 1000;
}

.github-link:hover {
    background: rgba(102, 179, 255, 0.1);
    border-color: var(--brand-blue);
    transform: translateY(-2px);
}

.github-link svg {
    width: 20px;
    height: 20px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 80px;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--brand-blue);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.footer-links a:hover {
    background: rgba(102, 179, 255, 0.1);
    border-bottom-color: var(--brand-blue);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .hero {
        padding: 50px 0;
        margin-bottom: 50px;
    }
    
    .hero-title {
        font-size: 3rem;
        line-height: 1.1;
        margin-bottom: 24px;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
        line-height: 1.4;
        margin-bottom: 32px;
    }
    
    .platform-notice {
        flex-direction: row;
        text-align: center;
        gap: 12px;
        padding: 16px 24px;
        font-size: 1rem;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    
    .download-btn {
        min-width: auto;
        width: 100%;
        max-width: 380px;
        padding: 28px 36px;
    }
    
    .step-header {
        padding: 24px;
        flex-direction: row;
        text-align: left;
        gap: 16px;
    }
    
    .step-content {
        padding: 0 24px 28px 24px;
    }
    
    .faq-question {
        padding: 18px 24px;
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 24px;
    }
    
    .faq-item.active .faq-answer {
        padding: 20px 24px;
    }
    
    section {
        margin-bottom: 70px !important;
    }
    
    h2 {
        font-size: 2.2rem !important;
    }
    
    .github-link {
        top: 10px;
        right: 10px;
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .github-link svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 40px 0;
        margin-bottom: 40px;
    }
    
    .hero-title {
        font-size: 2.4rem;
        line-height: 1.1;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.4;
        margin-bottom: 28px;
    }
    
    .platform-notice {
        flex-direction: column;
        gap: 8px;
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    
    .download-btn {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 24px 28px;
        max-width: 340px;
    }
    
    .btn-content {
        text-align: center;
    }
    
    .step-header {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .step-content {
        padding: 0 20px 24px 20px;
    }
    
    .video-container {
        max-width: 100%;
        margin: 0 20px;
    }
    
    
    section {
        margin-bottom: 60px !important;
    }
    
    h2 {
        font-size: 1.9rem !important;
    }
}

/* Loading and interaction states */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading {
    animation: pulse 2s infinite;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
.download-btn:focus,
.faq-question:focus {
    outline: 2px solid var(--brand-blue);
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: var(--brand-blue);
    color: var(--primary-bg);
}

/* iOS-specific optimizations */
@supports (-webkit-touch-callout: none) {
    /* iOS Safari specific styles */
    .highlight-card {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    .highlight-card:hover {
        -webkit-transform: translateY(-4px) translateZ(0);
        transform: translateY(-4px) translateZ(0);
    }
    
    /* Improve text rendering on iOS */
    body {
        -webkit-text-size-adjust: 100%;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Fix viewport issues on iOS */
    .container {
        -webkit-overflow-scrolling: touch;
    }
}


/* Privacy Policy Styles */
.privacy-section {
    margin-bottom: 80px;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.last-updated {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 40px;
    padding: 16px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.privacy-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.privacy-item h2 {
    color: var(--brand-blue);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.privacy-item h3 {
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 500;
    margin: 24px 0 12px 0;
}

.privacy-item p {
    color: var(--text-light);
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 16px;
}

.privacy-item ul {
    margin-left: 20px;
    color: var(--text-light);
    opacity: 0.9;
}

.privacy-item li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.privacy-item strong {
    color: var(--brand-blue);
    font-weight: 600;
}

.privacy-item a {
    color: var(--brand-blue);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.3s ease;
}

.privacy-item a:hover {
    border-bottom-color: var(--brand-blue);
}

.back-link {
    text-align: center;
    margin-top: 40px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-blue);
    color: var(--primary-bg);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--shadow-color);
    background: #99CCFF;
}

/* Privacy Policy Mobile Styles */
@media (max-width: 768px) {
    .privacy-item {
        padding: 24px 20px;
        margin-bottom: 20px;
    }
    
    .privacy-item h2 {
        font-size: 1.3rem;
    }
    
    .privacy-item h3 {
        font-size: 1.1rem;
    }
    
    .last-updated {
        padding: 12px;
        margin-bottom: 30px;
    }
    
    .back-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}