/* DailyJin Website Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.app-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    background: #f8f9fa;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    font-family: 'Courier New', monospace;
}

.logo h1 a {
    color: inherit;
    text-decoration: none;
}

.tagline {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.2rem;
    font-family: 'Courier New', monospace;
}

.header nav {
    display: flex;
    gap: 2rem;
}

.header nav a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.header nav a:hover {
    color: #007AFF;
}

/* Hero Section */
.hero {
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    flex: 1;
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #333;
    font-family: 'Courier New', monospace;
}

.hero-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

/* App Showcase */
.app-showcase {
    margin: 3rem 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.device-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.device.iphone {
    width: 320px;
    height: 660px;
    background: linear-gradient(145deg, #1d1d1f, #2a2a2c);
    border-radius: 55px;
    padding: 22px 14px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.4),
        0 8px 25px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    position: relative;
    transition: transform 0.3s ease;
}

.device.iphone:hover {
    transform: scale(1.02);
}

/* Dynamic Island */
.device.iphone::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 125px;
    height: 30px;
    background: #000;
    border-radius: 20px;
    z-index: 3;
}

/* Camera dot inside Dynamic Island */
.device.iphone::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-35px);
    width: 8px;
    height: 8px;
    background: #1a1a1a;
    border-radius: 50%;
    z-index: 4;
}

/* Side buttons */
.device.iphone .volume-up {
    position: absolute;
    left: -3px;
    top: 130px;
    width: 3px;
    height: 55px;
    background: linear-gradient(to right, #151517, #1d1d1f);
    border-radius: 0 2px 2px 0;
}

.device.iphone .volume-down {
    position: absolute;
    left: -3px;
    top: 200px;
    width: 3px;
    height: 55px;
    background: linear-gradient(to right, #151517, #1d1d1f);
    border-radius: 0 2px 2px 0;
}

.device.iphone .action-button {
    position: absolute;
    left: -3px;
    top: 270px;
    width: 3px;
    height: 30px;
    background: linear-gradient(to right, #151517, #1d1d1f);
    border-radius: 0 2px 2px 0;
}

.device.iphone .power-button {
    position: absolute;
    right: -3px;
    top: 180px;
    width: 3px;
    height: 75px;
    background: linear-gradient(to left, #151517, #1d1d1f);
    border-radius: 2px 0 0 2px;
}

.screen {
    width: 100%;
    height: 616px;
    background: #000;
    border-radius: 47px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 134px;
    height: 5px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 3px;
    z-index: 2;
}

/* Screenshot Navigation */
.screenshot-navigation {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-btn {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.nav-btn:hover {
    background: rgba(102, 102, 102, 0.1);
    color: #333;
    transform: scale(1.1);
}

.screenshot-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #333;
    transform: scale(1.2);
}

.dot:hover:not(.active) {
    background: rgba(102, 102, 102, 0.7);
}

/* Download Section */
.download-section {
    margin: 3rem 0 4rem;
}

.app-store-badge {
    display: inline-block;
    transition: transform 0.3s ease;
}

.app-store-badge:hover {
    transform: scale(1.05);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-icon-img {
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    margin: 0 auto;
    display: block;
}

.feature h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
    font-family: 'Courier New', monospace;
}

.feature p {
    color: #666;
    line-height: 1.6;
}

/* Support Section */
.support-section {
    padding: 4rem 2rem;
    text-align: center;
    background: white;
}

.support-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #333;
    font-family: 'Courier New', monospace;
}

.support-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.support-link {
    display: block;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.support-link:hover {
    background: #e9ecef;
    border-color: #007AFF;
    transform: translateY(-2px);
}

.support-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.support-link h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
    font-family: 'Courier New', monospace;
}

.support-link p {
    color: #666;
}

/* Support Main Content */
.support-main, .privacy-main {
    padding: 2rem;
    background: white;
    flex: 1;
}

.support-main h1, .privacy-main h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
    font-family: 'Courier New', monospace;
}

.support-intro, .last-updated {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

.last-updated {
    font-style: italic;
    margin-bottom: 2rem;
}

/* FAQ Styles */
.faq-section {
    margin-bottom: 4rem;
}

.faq-section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #333;
    font-family: 'Courier New', monospace;
}

.faq-category {
    margin-bottom: 3rem;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
}

.faq-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333;
    font-family: 'Courier New', monospace;
}

.faq-item {
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #666;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.faq-item p, .faq-item ul, .faq-item ol {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.faq-item ul, .faq-item ol {
    margin-left: 1.5rem;
}

.faq-item li {
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-section, .privacy-section {
    margin-bottom: 3rem;
}

.contact-section h2, .privacy-section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333;
    font-family: 'Courier New', monospace;
}

.privacy-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: #333;
    font-family: 'Courier New', monospace;
}

.privacy-section p, .privacy-section ul {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #555;
}

.privacy-section ul {
    margin-left: 2rem;
}

.privacy-section li {
    margin-bottom: 0.5rem;
}

.contact-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.contact-method {
    margin-bottom: 2rem;
}

.contact-method:last-child {
    margin-bottom: 0;
}

.contact-method h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
    font-family: 'Courier New', monospace;
}

.contact-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
}

.contact-link:hover {
    text-decoration: underline;
    color: #666;
}

/* App Info Section */
.app-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
}

.app-details p {
    margin-bottom: 0.5rem;
    color: #666;
}

.app-details strong {
    color: #333;
}

/* Privacy Summary */
.privacy-summary {
    background: #f0f0f0;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #666;
}

.privacy-summary h3 {
    color: #333;
    margin-bottom: 1rem;
}

.privacy-summary p {
    color: #333;
    font-weight: 500;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 2rem;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .support-links {
        grid-template-columns: 1fr;
    }
    
    .header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .header nav {
        gap: 1rem;
    }
    
    .support-main, .privacy-main {
        padding: 1rem;
    }
    
    .support-main h1, .privacy-main h1 {
        font-size: 2rem;
    }

    /* Mobile iPhone showcase */
    .device.iphone {
        width: 260px;
        height: 540px;
        padding: 18px 12px;
        border-radius: 45px;
    }
    
    .device.iphone::before {
        width: 100px;
        height: 25px;
        top: 14px;
    }
    
    .device.iphone::after {
        width: 6px;
        height: 6px;
        top: 21px;
        transform: translateX(-28px);
    }
    
    .device.iphone .volume-up {
        top: 110px;
        height: 45px;
    }
    
    .device.iphone .volume-down {
        top: 170px;
        height: 45px;
    }
    
    .device.iphone .action-button {
        top: 230px;
        height: 25px;
    }
    
    .device.iphone .power-button {
        top: 150px;
        height: 60px;
    }
    
    .screen {
        height: 504px;
        border-radius: 38px;
    }
    
    .home-indicator {
        width: 110px;
        height: 4px;
    }
    
    .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .screenshot-navigation {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 1rem;
    }
    
    .support-section {
        padding: 2rem 1rem;
    }
    
    .feature, .faq-category, .contact-info {
        padding: 1.5rem;
    }
}

/* Story Section */
.story-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.story-content {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.story-section p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.8;
}

/* Newsletter Section */
.newsletter-section {
    padding: 4rem 2rem;
    background: white;
    text-align: center;
}

.newsletter-container {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #333;
    font-family: 'Courier New', monospace;
}

.newsletter-section p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.newsletter-form {
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
}

.form-group button {
    background: #333;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    min-width: 100px;
}

.form-group button:hover {
    background: #555;
    transform: translateY(-1px);
}

.form-group button:active {
    transform: translateY(0);
}

.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: #f0f8f0;
    color: #2d5f2d;
    border: 1px solid #c3e6c3;
}

.form-message.error {
    background: #fdf2f2;
    color: #d63031;
    border: 1px solid #f5b7b1;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .form-group {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"] {
        width: 100%;
        max-width: 300px;
        min-width: unset;
    }
    
    .form-group button {
        width: auto;
        min-width: 120px;
        margin-top: 1rem;
        align-self: center;
    }
    
    .newsletter-section h2 {
        font-size: 1.5rem;
    }
}