/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #ffffff;
    color: #333333;
    line-height: 1.5;
}

.hidden {
    display: none !important;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: #ffffff;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #111;
}

.logo span {
    color: #1b55e2;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.nav-links {
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.nav-links a {
    text-decoration: none;
    color: inherit;
}

/* Hero Section (Blue Background) */
.hero {
    background-color: #1b55e2;
    color: #ffffff;
    padding: 60px 20px 80px;
    text-align: center;
}

.hero h1 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* Search Form */
.search-container {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    align-items: stretch;
    height: 56px;
}

.input-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 4px;
    padding: 0 5px;
}

.input-wrapper input {
    border: none;
    flex-grow: 1;
    padding: 10px 15px;
    font-size: 16px;
    outline: none;
    color: #333;
    height: 100%;
    background: transparent;
}

.paste-btn {
    background-color: #E0E7FF;
    color: #1b55e2;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    height: 36px;
}

.download-btn-main {
    background-color: #00b85a;
    color: #ffffff;
    border: none;
    padding: 0 30px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.download-btn-main:hover {
    background-color: #00a04f;
}

/* Status Messages */
.status-box {
    max-width: 700px;
    margin: 20px auto 0;
    padding: 15px;
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    color: white;
}
.status-box.error {
    background: #ffebee;
    color: #c62828;
}

/* Result Section */
.result-section {
    max-width: 800px;
    margin: -30px auto 40px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.result-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.result-card img {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
}

.result-info {
    flex-grow: 1;
}

.result-info h3 {
    margin-bottom: 5px;
    font-size: 18px;
}

.result-info .author {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.download-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.action-btn {
    background: #1b55e2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    flex-grow: 1;
    text-align: center;
}
.action-btn.outline {
    background: white;
    color: #1b55e2;
    border: 1px solid #1b55e2;
}

/* Progress Bar */
.progress-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-top: 15px;
}
.progress-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 600;
}
.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: #00b85a;
    width: 0%;
    transition: width 0.3s;
}

/* Content Section (SEO & FAQs) */
.content-section {
    background: #ffffff;
    padding: 40px 20px;
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
}

.content-container h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.content-container p, .content-container ul {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

.app-badges {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.seo-text ul, .seo-text ol {
    list-style-position: inside;
    margin-left: 10px;
    margin-bottom: 25px;
}
.seo-text li {
    margin-bottom: 8px;
    line-height: 1.6;
}
.seo-text h3 {
    margin-top: 30px;
    margin-bottom: 10px;
    font-size: 18px;
    color: #111;
}
.seo-text h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 15px;
    color: #333;
}

details {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 10px;
    background: #ffffff;
}

summary {
    padding: 15px;
    cursor: pointer;
    font-weight: 500;
    font-size: 15px;
    color: #333;
    list-style: none; /* Hide default arrow */
    position: relative;
}

summary::-webkit-details-marker {
    display: none;
}

details p {
    padding: 0 15px 15px;
    margin: 0;
    color: #666;
}

/* ------------------------------------- */
/* Footer Styles (Added Here)            */
/* ------------------------------------- */
.site-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #eaeaec;
    padding: 40px 20px 20px;
    text-align: center;
    margin-top: 40px;
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
}

.footer-logo span {
    color: #1b55e2;
}

.footer-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #1b55e2;
}

.footer-copyright {
    color: #999;
    font-size: 13px;
    border-top: 1px solid #eaeaec;
    padding-top: 20px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
        height: auto;
    }
    .input-wrapper {
        height: 50px;
    }
    .download-btn-main {
        height: 50px;
        justify-content: center;
    }
    .result-card {
        flex-direction: column;
        text-align: center;
    }
    .result-card img {
        width: 100%;
        height: 200px;
    }
    
    /* Footer responsive fix */
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* JS Toasts */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}
.toast {
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.toast-error { background: #d32f2f; }
.toast-success { background: #388e3c; }