/* ─── Shared Styles for all RemoveBGFree.me Pages ─── */
/* Variables */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --accent: #8b5cf6;
    --success: #10b981;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --white: #ffffff;
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 1rem 1.5rem;
}
.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
}
.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}
.nav { display: flex; gap: 2rem; }
.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
}
.nav-link:hover { color: var(--white); }

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 4rem 1.5rem 6rem;
    text-align: center;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
}
.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2rem;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    color: var(--white);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Features Bar */
.features-bar {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: -3rem auto 0;
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.feature-icon.free {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--white);
}
.feature-icon.nowatermark {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: var(--white);
}
.feature-icon.fast {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: var(--white);
}
.feature-icon.privacy {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: var(--white);
}
.feature-text h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
}
.feature-text p {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Tool Area */
.tool-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}
.upload-card {
    background: var(--white);
    border: 2px dashed var(--gray-200);
    border-radius: 1rem;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.upload-card:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}
.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.upload-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.upload-card p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}
.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-800);
}
.btn-secondary:hover {
    background: var(--gray-200);
}

/* Footer */
.footer {
    background: var(--gray-800);
    color: var(--white);
    padding: 3rem 1.5rem 1.5rem;
    margin-top: 4rem;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 0.75rem;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}
.back-to-top {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    cursor: pointer;
}
.back-to-top:hover { color: var(--white); }

/* SEO Landing Pages */
.info-section {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}
.info-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-800);
}
.info-section p {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.use-case-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.use-case-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.use-case-card h3 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.use-case-card p {
    color: var(--gray-500);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* FAQ */
.faq-section {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}
.faq-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}
.faq-item {
    background: var(--white);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.faq-question {
    padding: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
}
.faq-item.active .faq-question::after {
    content: '−';
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.25rem;
}
.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 1.25rem;
}
.faq-answer p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Related Pages */
.related-pages {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}
.related-pages h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}
.related-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.related-page-card {
    background: var(--white);
    padding: 1.25rem;
    border-radius: 0.75rem;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}
.related-page-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.related-page-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.related-page-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}
.related-page-card p {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* Processing Overlay */
.processing-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}
.processing-overlay.active { display: flex; }
.processing-card {
    background: var(--white);
    border-radius: 1.5rem;
    padding: 2.5rem;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1.5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.processing-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.processing-card .status-text {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}
.progress-bar-bg {
    background: var(--gray-100);
    border-radius: 9999px;
    height: 6px;
    overflow: hidden;
    margin: 1rem 0;
}
.progress-bar-fill {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    height: 100%;
    border-radius: 9999px;
    width: 0%;
    transition: width 0.3s ease;
}
.progress-percent {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
}
.result-image {
    max-width: 200px;
    max-height: 200px;
    border-radius: 0.75rem;
    margin: 1rem auto;
    display: block;
    object-fit: contain;
}
.result-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav { display: none; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .features-bar { margin: -2rem 1rem 0; padding: 1rem; }
}
