:root {
    --primary-blue: #0D9488;
    --primary-blue-dark: #0F766E;
    --primary-green: #10B981;
    --primary-green-dark: #059669;
    --bg-white: #F8FAFC;
    --text-dark: #1E293B;
    --text-light: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-white);
    color: var(--text-dark);
}

.header {
    background: #FFFFFF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.logo {
    font-size: 24px;
    font-weight: 700;
}
.logo-snap { color: #333; }
.logo-tik { color: var(--primary-blue); }

.menu-icon {
    cursor: pointer;
    color: #333;
    display: none;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: white;
    padding: 10px 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.mobile-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.mobile-menu.active {
    display: flex;
}

.hero {
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 40px 20px;
    text-align: center;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 14px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.format-toggles {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.toggle-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s;
}

.toggle-btn.active {
    background: white;
    color: var(--primary-blue);
}

.input-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.input-wrapper input {
    width: 100%;
    padding: 16px 100px 16px 16px; /* Space for the paste button */
    border: none;
    border-radius: 6px;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    outline: none;
}

.paste-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(24, 90, 219, 0.1);
    color: var(--primary-blue);
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    font-size: 14px;
}

.download-btn {
    background-color: var(--primary-green);
    color: white;
    border: none;
    width: 100%;
    padding: 16px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background-color 0.2s;
}

.download-btn:hover {
    background-color: var(--primary-green-dark);
}

.ad-placeholder {
    max-width: 600px;
    margin: 20px auto;
    padding: 0 20px;
}
.ad-box img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.progress-section {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
}

.progress-container p {
    margin-bottom: 10px;
    font-weight: 600;
    color: #555;
}

.progress-bar-bg {
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--primary-green);
    transition: width 0.1s linear;
}

.result-section {
    max-width: 600px;
    margin: 20px auto;
    padding: 0 20px;
}

.result-card {
    display: flex;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 15px;
    gap: 15px;
    align-items: center;
}

.result-thumb img {
    width: 100px;
    border-radius: 6px;
}

.result-details {
    flex: 1;
}

.result-details h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.result-details p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dl-action-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: 0.2s;
}
.dl-action-btn:hover { background: var(--primary-blue-dark); }

.content-section, .faq-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.content-section h2, .faq-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    color: var(--primary-blue);
}

.content-section h3 {
    font-size: 18px;
    margin: 20px 0 10px;
    color: var(--text-dark);
}

.content-section p {
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.content-section ul,
.content-section ol {
    margin-bottom: 20px;
    padding-left: 25px;
    color: #555;
    line-height: 1.6;
}

.content-section li {
    margin-bottom: 8px;
}

.content-section li strong {
    color: var(--text-dark);
}

.content-section hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 30px 0;
}

.content-section code {
    background-color: #f4f7fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: var(--primary-blue-dark);
    white-space: pre-wrap;
    word-break: break-all;
}

.content-section h1 {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
    color: var(--primary-blue);
}

.faq-item {
    background: white;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.faq-item h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.faq-item p {
    color: #555;
    line-height: 1.5;
}

.hidden {
    display: none !important;
}

.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }
    
    .menu-icon {
        display: block;
    }

    .result-card {
        flex-direction: column;
        text-align: center;
    }
    .result-thumb img {
        width: 100%;
        max-width: 200px;
    }
}


/* New Header Center Links */
.header-center-links {
    display: flex;
    gap: 20px;
    align-items: center;
}
.header-center-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s;
}
.header-center-links a:hover {
    color: var(--primary-blue);
}

/* Footer Styles */
.footer {
    background: #FFFFFF;
    border-top: 1px solid #e0e0e0;
    padding: 30px 20px;
    margin-top: 50px;
    text-align: center;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.footer-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--primary-blue);
}
.footer p {
    color: #666;
    font-size: 14px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .header-center-links {
        display: none;
    }
}
