/* ZenChess Landing Page Styles */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #2c3e50;
    line-height: 1.6;
}

/* Landing Container */
.landing-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Hero Storage Promise */
.hero-promise {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.storage-highlight {
    margin-bottom: 1rem;
}

.storage-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(45deg, #ffd700, #ffeb3b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.storage-text {
    font-size: 1.2rem;
    margin: 0;
    opacity: 0.9;
}

.promise-main {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0.5rem 0;
}

.promise-sub {
    font-size: 1rem;
    opacity: 0.8;
    margin: 0;
}

/* Value Section */
.value-section {
    margin: 3rem 0;
    text-align: center;
}

.value-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-weight: 600;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.comparison-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 2px solid #e8e8e8;
}

.comparison-card.highlight {
    border-color: #667eea;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
    transform: scale(1.05);
}

.comparison-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.comparison-list {
    list-style: none;
    text-align: left;
}

.comparison-list li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.comparison-list.negative li {
    color: #e74c3c;
}

.comparison-list.positive li {
    color: #27ae60;
}

/* Trust Section */
.trust-section {
    background: #f8f9fa;
    padding: 3rem 2rem;
    border-radius: 12px;
    margin: 3rem 0;
    text-align: center;
}

.trust-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.trust-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.trust-item strong {
    display: block;
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.trust-item p {
    color: #666;
    margin: 0;
}

/* About Page Styles */
.about-nav {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 100;
    display: flex;
    gap: 1rem;
}

.nav-link {
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(44, 62, 80, 0.1);
}

.nav-link:hover {
    background: #2c3e50;
    color: white;
    transform: translateY(-2px);
}

.about-main {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 6rem;
}

.about-content {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.about-title {
    font-size: 3rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-story {
    margin-bottom: 4rem;
}

.story-section {
    margin-bottom: 2.5rem;
}

.story-heading {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.story-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    margin: 0;
}

.story-text strong {
    color: #667eea;
    font-weight: 600;
}

.future-features {
    margin-bottom: 4rem;
}

.features-title {
    font-size: 2.2rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.feature-preview {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #667eea;
    transition: transform 0.3s ease;
}

.feature-preview:hover {
    transform: translateY(-5px);
}

.feature-preview h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin: 1rem 0;
    font-weight: 600;
}

.feature-preview p {
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

.about-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 3rem;
}

.cta-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.cta-text {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-buttons .btn-primary {
    background: white;
    color: #667eea;
}

.cta-buttons .btn-primary:hover {
    background: #f8f9ff;
    transform: translateY(-2px);
}

.cta-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.cta-buttons .btn-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .comparison-card.highlight {
        transform: none;
    }
    
    .storage-number {
        font-size: 2.5rem;
    }
    
    .value-title {
        font-size: 2rem;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
    }
    
    .about-nav {
        position: relative;
        top: auto;
        right: auto;
        justify-content: center;
        margin-bottom: 2rem;
    }
    
    .about-main {
        margin-top: 2rem;
        padding: 1rem;
    }
    
    .about-content {
        padding: 2rem;
    }
    
    .about-title {
        font-size: 2.2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Top Left Logo Container */
.top-left-logo-container {
    position: fixed;
    top: -4vh;
    left: 0;
    width: 32vw;
    height: 56vh;
    z-index: 20;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
    pointer-events: none;
    overflow: visible;
}

.top-left-logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

/* Zen Logo */
.zen-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    opacity: 0.98;
    filter: brightness(0) saturate(100%);
    pointer-events: none;
    user-select: none;
    display: block;
    transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .top-left-logo-container {
        top: -4vh;
        width: 37vw;
        height: 61vh;
        padding: 0;
        overflow: visible;
    }
}

@media (max-width: 900px) {
    .top-left-logo-container {
        top: -4vh;
        width: 42vw;
        height: 66vh;
        padding: 0;
        overflow: visible;
    }
}

@media (max-width: 600px) {
    .top-left-logo-container {
        top: -4vh;
        width: 47vw;
        height: 71vh;
        padding: 0;
        overflow: visible;
    }
}

@media (max-width: 400px) {
    .top-left-logo-container {
        top: -4vh;
        width: 57vw;
        height: 76vh;
        padding: 0;
        overflow: visible;
    }
}

/* Header */
.landing-header {
    padding: 2rem 3rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 2rem 3rem;
    z-index: 1;
}

.logo {
    height: 100%;
    width: auto;
    max-width: 200px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.2;
}

/* Small logo for header (mobile/branding) */
.logo-img-small {
    height: 48px;
    width: auto;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    background: #fff;
    z-index: 2;
    position: relative;
}

/* Remove logo duplication in header */
.landing-header {
    height: 60px;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
}

/* Zen Title and Subtitle (concise, zen-themed) */
.zen-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    letter-spacing: 0.02em;
}
.zen-subtitle {
    font-size: 1.25rem;
    text-align: center;
    color: #4a5a6a;
    margin-bottom: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Main Content Spacing */
.landing-main {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    padding-bottom: 2rem;
}

/* Hero Section */
.hero-section {
    max-width: 800px;
    margin-bottom: 4rem;
    position: relative;
    z-index: 3;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #5a6c7d;
    margin-bottom: 3rem;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.landing-buttons {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

/* Button Styling Fix */
.btn {
    display: inline-block;
    padding: 0.6em 1.4em;
    border-radius: 2em;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin: 0 0.5em 0.5em 0;
}
.btn-primary {
    background: linear-gradient(90deg, #5b6afe 0%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 4px 16px 0 rgba(91,106,254,0.10);
    border: none;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.btn-primary:hover {
    background: linear-gradient(90deg, #7c3aed 0%, #5b6afe 100%);
    color: #fff;
}
.btn-secondary {
    background: #fff;
    color: #2c3e50;
    border: 2px solid #2c3e50;
}
.btn-secondary:hover {
    background: #f5f7fa;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    width: 100%;
    margin-top: 2rem;
    position: relative;
    z-index: 3;
}

/* Feature Cards Layout - horizontal row with icons above text */
.feature-cards {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    margin-top: 3rem;
    z-index: 1;
    position: relative;
}
.feature-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(44, 62, 80, 0.08);
    padding: 2.5rem 2rem 2rem 2rem;
    min-width: 260px;
    max-width: 320px;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: box-shadow 0.2s;
}
.feature-card:hover {
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.16);
}
/* Feature Icon Styling */
.feature-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
}
.feature-icon img, .feature-icon svg {
    width: 48px;
    height: 48px;
    display: block;
}
@media (max-width: 900px) {
    .feature-cards {
        flex-direction: column;
        gap: 1.5rem;
    }
    .feature-card {
        max-width: 100%;
    }
}

.feature-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.7rem;
    color: #222;
}
.feature-card p {
    font-size: 1rem;
    color: #444;
    margin-bottom: 0;
}

.feature-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #5a6c7d;
    font-size: 1rem;
    line-height: 1.6;
}

/* Footer */
.landing-footer {
    text-align: center;
    padding: 2rem 0 1rem 0;
    color: #888;
    font-size: 1rem;
    background: none;
    z-index: 2;
    position: relative;
}

.landing-footer p {
    color: #5a6c7d;
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-family: 'Playfair Display', serif;
    color: #2c3e50;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f5f5f5;
    color: #666;
}

.modal-body {
    padding: 2rem;
}

.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 2px solid #eee;
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.auth-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Checkbox styling */
.checkbox-group {
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 0.75rem;
    transform: scale(1.2);
    cursor: pointer;
}

.checkbox-label:hover {
    color: #2c3e50;
}

.oauth-section {
    margin-top: 2rem;
}

.divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #eee;
}

.divider span {
    background: white;
    padding: 0 1rem;
    color: #999;
    font-size: 0.9rem;
}

.google-btn {
    width: 100%;
    padding: 1rem;
    background: white;
    border: 2px solid #eee;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: #333;
}

.google-btn:hover {
    border-color: #ddd;
    background: #f9f9f9;
}

.google-icon {
    width: 20px;
    height: 20px;
}



/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .landing-header {
        padding: 1.5rem 2rem;
    }
    
    .landing-main {
        padding: 3rem 1.5rem;
    }
    
    .logo {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
        max-height: 85vh;
        overflow-y: auto;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-body {
        padding: 1rem 1.5rem;
    }
    
    .auth-tabs {
        margin-bottom: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .auth-form {
        margin-bottom: 1rem;
    }
    
    .oauth-section {
        margin-top: 1rem;
    }
    
    .divider {
        margin: 1rem 0;
    }
    
    .google-btn {
        margin-bottom: 1rem;
    }
}

/* File Upload Styles */
#pgn-file {
    display: none;
}

.file-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: #495057;
}

.file-upload-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

#file-name {
    font-size: 0.9rem;
    color: #6c757d;
    margin-left: 0.75rem;
}

/* PGN Import specific styles */
#pgn-tab .divider {
    margin: 1.5rem 0;
}

#pgn-tab .divider span {
    background: #f8f9fa;
    color: #6c757d;
} 