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

:root {
    --primary-color: #1889c1;
    --primary-dark: #0f6b96;
    --secondary-color: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #888888;
    --border-color: #e5e5e5;
    --footer-bg: #1a1a1a;
    --footer-text: #999999;
    --shadow-light: 0 2px 10px rgba(24, 137, 193, 0.1);
    --shadow-medium: 0 4px 20px rgba(24, 137, 193, 0.15);
    --gradient-primary: linear-gradient(135deg, #1889c1 0%, #0f6b96 100%);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #f5f7fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.header {
    background-color: var(--secondary-color);
    box-shadow: var(--shadow-light);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 65px;
}

.nav-logo a {
    display: flex;
    align-items: center;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
    gap: 10px;
}

.nav-logo a i {
    font-size: 1.6rem;
}

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

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background-color: rgba(24, 137, 193, 0.08);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: var(--gradient-primary);
    color: var(--secondary-color);
    padding: 40px 0 30px;
    margin-top: 65px;
    text-align: center;
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

.visitor-counter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    margin-bottom: 14px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-size: 0.85rem;
    opacity: 0.85;
}

/* Upload Section - 3 column layout with ads */
.upload-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    max-width: 1200px;
    margin: -30px auto 40px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* Ad Containers */
.ad-container {
    width: 160px;
    min-height: 600px;
    flex-shrink: 0;
    position: sticky;
    top: 85px;
}

.ad-placeholder {
    width: 160px;
    min-height: 600px;
    background: var(--secondary-color);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
}

.upload-card {
    background: var(--secondary-color);
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
    padding: 40px;
    flex: 1;
    max-width: 700px;
}

.upload-card h2 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1.4rem;
}

.upload-card .subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    background: #fafbfc;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--primary-color);
    background-color: rgba(24, 137, 193, 0.04);
}

.drop-zone i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.drop-zone p {
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.drop-zone .browse-link {
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
}

.drop-zone .file-hint {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 6px;
}

.file-input {
    display: none;
}

/* Honeypot field - hidden from humans, bots fill it */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* File Info */
.file-info {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(24, 137, 193, 0.06);
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid rgba(24, 137, 193, 0.15);
}

.file-info.show {
    display: flex;
}

.file-info i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.file-info .file-details {
    flex: 1;
}

.file-info .file-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.file-info .file-size {
    color: var(--text-light);
    font-size: 0.8rem;
}

.file-info .remove-file {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px;
    transition: color 0.3s;
}

.file-info .remove-file:hover {
    color: #e74c3c;
}

/* Password Field */
.password-group {
    margin-bottom: 24px;
}

.password-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
    padding: 12px 46px 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s;
    outline: none;
}

.password-wrapper input:focus {
    border-color: var(--primary-color);
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
}

.toggle-password:hover {
    color: var(--primary-color);
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--gradient-primary);
    color: var(--secondary-color);
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 137, 193, 0.35);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Result Messages */
.result-box {
    margin-top: 24px;
    padding: 16px 20px;
    border-radius: 10px;
    display: none;
    align-items: center;
    gap: 12px;
}

.result-box.show {
    display: flex;
}

.result-box.success {
    background: #eafaf1;
    border: 1px solid #27ae60;
    color: #1e8449;
}

.result-box.error {
    background: #fdedec;
    border: 1px solid #e74c3c;
    color: #c0392b;
}

.result-box i {
    font-size: 1.3rem;
}

.result-box .result-content {
    flex: 1;
}

.result-box .result-content p {
    font-weight: 600;
    margin-bottom: 2px;
}

.result-box .result-content small {
    opacity: 0.8;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #27ae60;
    color: var(--secondary-color);
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    text-decoration: none;
}

.btn-download:hover {
    background: #219a52;
    transform: translateY(-1px);
}

/* Loading Spinner */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* How It Works */
.how-it-works {
    max-width: 900px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.how-it-works h2 {
    text-align: center;
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 30px;
}

.how-it-works h3 {
    text-align: center;
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 30px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step {
    text-align: center;
    padding: 28px 20px;
    background: var(--secondary-color);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-4px);
}

.step-icon {
    width: 56px;
    height: 56px;
    background: rgba(24, 137, 193, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.step-icon i {
    font-size: 1.4rem;
    color: var(--primary-color);
}

.step h4 {
    margin-bottom: 6px;
    color: var(--text-primary);
    font-size: 1rem;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

/* Features Section */
.features-section {
    max-width: 1000px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.features-section h2 {
    text-align: center;
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 30px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    text-align: center;
    padding: 28px 20px;
    background: var(--secondary-color);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(24, 137, 193, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.feature-icon i {
    font-size: 1.4rem;
    color: var(--primary-color);
}

.feature-card h3 {
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    max-width: 800px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.faq-section h2 {
    text-align: center;
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 30px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--secondary-color);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    list-style: none;
    transition: color 0.3s;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question i {
    font-size: 0.8rem;
    color: var(--text-light);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item[open] .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px 18px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.92rem;
}

/* SEO Content Section */
.seo-content-section {
    max-width: 800px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.seo-content {
    background: var(--secondary-color);
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    padding: 36px 40px;
}

.seo-content h2 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.seo-content h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-top: 20px;
    margin-bottom: 10px;
}

.seo-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
    font-size: 0.94rem;
}

.seo-content ul {
    list-style: none;
    padding: 0;
    margin-top: 8px;
}

.seo-content ul li {
    color: var(--text-secondary);
    padding: 6px 0 6px 24px;
    position: relative;
    line-height: 1.6;
    font-size: 0.94rem;
}

.seo-content ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* Privacy Policy Page */
.policy-section {
    max-width: 800px;
    margin: -30px auto 50px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.policy-card {
    background: var(--secondary-color);
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
    padding: 40px;
}

.policy-updated {
    text-align: right;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.policy-block {
    margin-bottom: 28px;
}

.policy-block:last-child {
    margin-bottom: 0;
}

.policy-block h2 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.policy-block h2 i {
    font-size: 1rem;
}

.policy-block p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 10px;
}

.policy-block ul {
    list-style: none;
    padding: 0;
}

.policy-block ul li {
    color: var(--text-secondary);
    padding: 6px 0 6px 24px;
    position: relative;
    line-height: 1.6;
}

.policy-block ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.8rem;
}

.policy-block a {
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s;
}

.policy-block a:hover {
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .policy-card {
        padding: 24px;
    }
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: var(--secondary-color);
    padding: 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.88rem;
    color: var(--footer-text);
}

.footer-bottom nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-bottom a {
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: #5db8e0;
}

/* Responsive */
@media (max-width: 1024px) {
    .ad-container {
        display: none;
    }

    .upload-section {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 65px;
        left: -100%;
        width: 100%;
        background-color: var(--secondary-color);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
    }

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

    .nav-link {
        padding: 12px 16px;
        width: 100%;
        border-radius: 8px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

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

    .upload-card {
        padding: 24px;
    }

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

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

    .seo-content {
        padding: 24px;
    }

    .faq-question {
        padding: 14px 18px;
        font-size: 0.9rem;
    }

    .faq-answer {
        padding: 0 18px 14px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .upload-card {
        padding: 18px;
    }

    .drop-zone {
        padding: 24px 14px;
    }
}
