@import url('footer.css');

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    background: #f8fafc; 
    min-height: 100vh;
    display: flex; 
    flex-direction: column;
    align-items: center; 
    color: #334155; 
    line-height: 1.6;
}

.container { 
    width: 100%; 
    max-width: 600px; 
    margin: 2rem;
    flex-grow: 1;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    background: white;
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}
.main-nav a {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
}
.main-nav a:hover {
    background-color: #f1f5f9;
    color: #1e293b;
}
.main-nav a.active {
    background-color: #3b82f6;
    color: white;
}

.header { text-align: center; margin-bottom: 2rem; }
.logo { font-size: 2rem; font-weight: 700; color: #1e293b; margin-bottom: 0.5rem; margin-top: 0; }
.subtitle { font-size: 1rem; color: #64748b; font-weight: 400; margin: 0; }
/* Hero banner for LCP */
.hero-banner { contain: layout style paint; }
.intro-text { font-size: 1.1rem; color: #475569; text-align: center; margin-bottom: 2.5rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.upload-box { background: white; border-radius: 12px; padding: 2rem; margin-bottom: 2rem; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); border: 1px solid #e2e8f0; transition: all 0.3s ease; }
#drop-zone { border: 2px dashed #cbd5e1; border-radius: 8px; padding: 3rem 2rem; text-align: center; cursor: pointer; transition: all 0.3s ease; background: #fafafa; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.upload-icon { font-size: 3rem; margin-bottom: 1rem; color: #94a3b8; }
.drop-text { font-size: 1.1rem; color: #475569; margin-bottom: 1.5rem; font-weight: 500; }
.choose-video-button { background: #3b82f6; color: white; border: none; padding: 0.75rem 1.5rem; border-radius: 6px; font-size: 0.9rem; font-weight: 500; cursor: pointer; }
#progress-container { background: #f8fafc; border-radius: 8px; padding: 1.5rem; border: 1px solid #e2e8f0; }
.progress-bar { width: 100%; height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; margin-top: 0.5rem;}
#progress-fill { width: 0%; height: 100%; background: #3b82f6; border-radius: 4px; transition: width 0.1s linear; }
#upload-status { font-size: 0.9rem; font-weight: 500; text-align: center; }

.options-box { background: white; border-radius: 12px; padding: 2rem; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); border: 1px solid #e2e8f0; }
.options-box.disabled { opacity: 0.5; pointer-events: none; }
.options-title { font-size: 1.2rem; font-weight: 600; color: #1e293b; margin-bottom: 1.5rem; text-align: center; }
.duration-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 2rem; }
.duration-btn { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; padding: 0.75rem 1rem; border-radius: 6px; font-size: 0.9rem; font-weight: 500; cursor: pointer; text-decoration: none; text-align: center; display: block; }
.custom-form { background: #f8fafc; padding: 2rem; border-radius: 8px; border: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.custom-form input[type="number"] { flex-grow: 1; min-width: 120px; padding: 0.8rem 1rem; border: 1px solid #d1d5db; border-radius: 6px; font-size: 1rem; transition: border-color 0.2s ease; }
.custom-form input[type="number"]:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }
.custom-btn { background: #059669; color: white; border: none; padding: 0.8rem 1.5rem; border-radius: 6px; font-size: 1rem; font-weight: 500; cursor: pointer; transition: all 0.3s ease; }
#download-container { background: white; border-radius: 12px; padding: 2rem; margin-top: 2rem; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); border: 1px solid #e2e8f0; text-align: center; }
.download-options { display: flex; flex-direction: column; gap: 1rem; }
.download-options button { display: block; width: 100%; text-decoration: none; padding: 1rem; border-radius: 8px; font-weight: 600; font-size: 1.1rem; font-family: inherit; cursor: pointer; border: none; }
#download-zip-btn { background: #059669; color: white; }
#download-all-btn { background: #3b82f6; color: white; }
.download-options button:disabled { background: #9ca3af; cursor: not-allowed; }
.download-note { font-size: 0.8rem; color: #64748b; margin-top: 1.5rem; }
.hidden { display: none !important; }

#reset-zone { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #e2e8f0; }
#reset-btn { background: transparent; border: 2px solid #64748b; color: #64748b; padding: 0.75rem 1.5rem; width: 100%; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease; }
#reset-btn:hover { background: #1e293b; border-color: #1e293b; color: white; }

.faq-container { background: white; border-radius: 12px; padding: 2rem; margin-top: 2rem; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); border: 1px solid #e2e8f0; }
.faq-title { font-size: 1.5rem; font-weight: 600; color: #1e293b; margin-bottom: 1.5rem; text-align: center; }
.faq-list { display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; transition: all 0.3s ease; }
.faq-item summary { font-size: 1.1rem; font-weight: 500; color: #334155; padding: 1rem 1.25rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; transition: background-color 0.2s ease; }
.faq-item summary:hover { background-color: #f1f5f9; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ''; border-style: solid; border-color: #3b82f6; border-width: 0 2px 2px 0; display: inline-block; height: 8px; width: 8px; transform: rotate(45deg); transition: transform 0.3s ease-in-out; }
.faq-item[open] > summary { border-bottom: 1px solid #e2e8f0; }
.faq-item[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq-item p { color: #475569; padding: 1.25rem; margin: 0; }

.content-section { background: white; border-radius: 12px; padding: 2rem; margin-bottom: 2rem; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); border: 1px solid #e2e8f0; }
.content-title { font-size: 1.5rem; font-weight: 600; color: #1e293b; text-align: center; margin-bottom: 2rem; }
.features-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; list-style: none; padding: 0; }
.feature-card { background: white; border-radius: 16px; padding: 1.5rem 1rem; text-align: center; border: 1px solid #f3f4f6; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -2px rgba(0, 0, 0, 0.03); transition: all 0.3s ease; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.07); }
.feature-card-icon-wrapper { width: 64px; height: 64px; background: #f8fafc; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem auto; border: 1px solid #f3f4f6; }
.feature-icon { font-size: 2rem; }
.feature-card h3 { font-size: 1rem; font-weight: 600; color: #1e293b; margin-bottom: 0.25rem; }
.feature-card p { font-size: 0.875rem; color: #64748b; line-height: 1.5; }

/* --- Policy & Blog Page Styles --- */
.policy-container { background: white; border-radius: 12px; padding: 2rem 2.5rem; margin-bottom: 2rem; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); border: 1px solid #e2e8f0; text-align: left; }
.policy-container h1 { font-size: 1.8rem; margin-bottom: 0.5rem; color: #1e293b; }
.policy-container h2 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 1rem; color: #1e293b; border-bottom: 1px solid #e2e8f0; padding-bottom: 0.5rem;}
.policy-container p { margin-bottom: 1rem; }
.policy-container ul { list-style-position: inside; padding-left: 1rem; margin-bottom: 1rem; }
.policy-container ol { list-style-position: inside; padding-left: 1rem; margin-bottom: 1rem; }
.policy-container li { margin-bottom: 1rem; }
.policy-container a { color: #3b82f6; text-decoration: none; font-weight: 500; }
.policy-container a:hover { text-decoration: underline; }
.blog-post .post-meta { font-size: 0.9rem; color: #94a3b8; margin-bottom: 2rem; border-bottom: 1px solid #e2e8f0; padding-bottom: 1rem; }
.blog-list-container { background: white; border-radius: 12px; padding: 2rem 2.5rem; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); border: 1px solid #e2e8f0; }
.blog-list-container h1 { font-size: 1.8rem; color: #1e293b; margin-bottom: 2rem; text-align: center; }
.post-card { border-bottom: 1px solid #e2e8f0; padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
.post-card:last-child { border-bottom: none; margin-bottom: 0; }
.post-card h2 { font-size: 1.4rem; color: #1e293b; margin-bottom: 0.5rem; }
.post-excerpt { color: #475569; margin-bottom: 1rem; }
.read-more-btn { color: #3b82f6; text-decoration: none; font-weight: 600; }
.read-more-btn:hover { text-decoration: underline; }

/* --- Responsive Adjustments --- */
@media (max-width: 640px) {
    .container { max-width: 100%; margin: 0 1rem; }
    .upload-box, .options-box, .faq-container, .content-section, .policy-container { padding: 2rem 1.5rem; }
    .custom-form { flex-direction: column; }
    .custom-form input[type="number"],
    .custom-form .custom-btn { width: 100%; }
    .features-list { grid-template-columns: repeat(2, 1fr); }
    .main-nav { flex-direction: column; text-align: center; }
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
}

/* --- Keyframe Animations --- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes fadeInScale { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }