/* Image Resizer - Theme Styles */
/* Unified theme system for all pages */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #8b5cf6;
    --secondary: #10b981;
    --secondary-dark: #059669;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --text-light: #ffffff;
    
    --bg-glass: rgba(255, 255, 255, 0.95);
    --bg-glass-dark: rgba(31, 41, 55, 0.9);
    
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
      
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-out;
    
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Dark mode theme */
:root.dark-mode {
    --bg-main: radial-gradient(ellipse at center, #4c1d95 0%, #6b21a8 30%, #1e293b 60%, #0f172a 90%, #020617 100%);
    --bg-card: rgba(31, 41, 55, 0.9);
    --bg-glass: rgba(31, 41, 55, 0.7);
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.1);
}

/* Body styles for all pages - LIGHT MODE with purple gradient */
body {
    font-family: var(--font-sans);
    background: white;
    
    
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    color: var(--text-primary);
    line-height: 1.6;
    transition: var(--transition);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root.dark-mode body {
    background: #1e293b 60%;
    color: var(--text-light);
}

/* Theme Toggle Button - Matches HTML structure */
.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

:root.dark-mode .theme-toggle {
    background: var(--bg-glass-dark);
    border-color: rgba(255, 255, 255, 0.1);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: var(--shadow-xl);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* Theme Icons */
.theme-icon {
    width: 28px;
    height: 28px;
    transition: var(--transition);
}

.sun-icon {
    display: block;
}

.moon-icon {
    display: none;
}

:root.dark-mode .sun-icon {
    display: none;
}

:root.dark-mode .moon-icon {
    display: block;
}

/* Main Container - Unified styling */
.container {
    max-width: 850px;
    width: 100%;
    background: #ffffff; /* Solid white */
    box-shadow: 15px 0px 266px #a855f7;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 1.5rem;
    padding: 3rem 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
    margin-bottom: 2.5rem;
    color: #1f2937; /* Dark text inside */
}


:root.dark-mode .container {
    background: var(--bg-glass-dark);
    border-color: rgba(255, 255, 255, 0.1);
}

.container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

/* Header Section - Unified styling */
.header {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    animation: bounce 2s infinite;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

:root.dark-mode .subtitle {
    color: #cbd5e1;
}

/* Content Sections */
.content-section {
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

:root.dark-mode .content-section p {
    color: #e2e8f0;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

:root.dark-mode .feature-card {
    background: rgba(31, 41, 55, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.8s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

:root.dark-mode .feature-title {
    color: var(--text-light);
}

.feature-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

:root.dark-mode .feature-description {
    color: #cbd5e1;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 1.5rem;
    padding: 2.5rem;
    text-align: center;
    margin: 3rem 0;
}

:root.dark-mode .cta-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
}
:root.dark-mode .cta-section p{
    color: white;
}

.cta-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Footer */
footer {
    /* background: var(--bg-glass); */
    background: #ffffff; /* Solid white */
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    margin-top: 50px;
    width: 100%;
    max-width: 800px;
}

:root.dark-mode footer {
    background: var(--bg-glass-dark);
    border-color: rgba(255, 255, 255, 0.1);
}

footer a {
    color: var(--primary);
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
    transform: translateY(-1px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .theme-toggle {
        top: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
    }

    .theme-icon {
        width: 24px;
        height: 24px;
    }

    .container {
        padding: 2rem;
        border-radius: 1.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .cta-section {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .hero-icon {
        font-size: 3rem;
    }

    .container {
        padding: 1.5rem;
    }

    .theme-toggle {
        width: 45px;
        height: 45px;
    }

    .theme-icon {
        width: 20px;
        height: 20px;
    }
}