/**
 * SaveThumbnail - Custom Styles
 * ----------------------------
 * Minimal overrides beyond Tailwind CSS.
 */

/* Modern Mesh Gradient Background */
body {
    background-color: #ffffff;
    color: #1f2937;
    min-height: 100vh;
}

.dark body {
    background-color: #000000;
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 25%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 25%, 1) 0, transparent 50%);
}

/* Glassmorphism Cards */
.glass-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dark .glass-card {
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Enhanced Typography */
.hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.cta-box {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-box:focus-within {
    border-color: #EF4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1), 0 12px 40px rgba(239, 68, 68, 0.1);
}

/* Glassmorphism Hints */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Animated Gradient Text */
.text-gradient {
    background: linear-gradient(to right, #111827, #4B5563, #111827);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 8s linear infinite;
}

.dark .text-gradient {
    background: linear-gradient(to right, #F9FAFB, #9CA3AF, #F9FAFB);
    background-size: 200% auto;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.btn-extract {
    background-color: #EF4444;
    transition: all 0.2s ease;
}

.btn-extract:hover {
    background-color: #DC2626;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(220, 38, 38, 0.6);
}

.btn-extract:active {
    transform: translateY(0);
}

.platform-card {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #fff;
}

::-webkit-scrollbar-thumb {
    background: #E5E7EB;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #EF4444;
}

/* Aspect Ratios */
.portrait-aspect {
    aspect-ratio: 9/16;
}

.landscape-aspect {
    aspect-ratio: 16/9;
}

#resultArea {
    scroll-margin-top: 80px;
}

.cta-container {
    max-width: 600px;
    margin: 0 auto;
}

.trust-line svg {
    display: inline-block;
    vertical-align: middle;
    margin-top: -2px;
}

/* Dark Mode Overrides */
.dark body {
    background-color: #111827;
    /* gray-900 */
    color: #F9FAFB;
    /* gray-50 */
}

.dark .bg-white {
    background-color: #1F2937 !important;
    /* gray-800 */
    border-color: #374151 !important;
    /* gray-700 */
    color: #F9FAFB;
}

.dark .bg-gray-50 {
    background-color: #111827 !important;
    /* gray-900 */
    border-color: #374151 !important;
}

.dark .text-gray-900 {
    color: #F9FAFB !important;
}

.dark .text-gray-500,
.dark .text-gray-600 {
    color: #9CA3AF !important;
    /* gray-400 */
}

.dark .border-gray-100,
.dark .border-gray-200 {
    border-color: #374151 !important;
    /* gray-700 */
}

.dark header {
    background-color: rgba(31, 41, 55, 0.95) !important;
    /* gray-800 */
    border-bottom-color: #374151 !important;
}

.dark input {
    color: #F9FAFB;
}

.dark input::placeholder {
    color: #6B7280;
}


/* Input Field Enhancement */
input::placeholder {
    color: #6B7280;
    opacity: 0.8;
}

/* Dark Mode Overrides for Glass */
.dark input {
    color: #fff;
    background: rgba(0, 0, 0, 0.2);
}

.dark .text-gray-900 {
    color: #F3F4F6 !important;
}

.dark .text-gray-500 {
    color: #9CA3AF !important;
}

.dark header {
    background-color: rgba(17, 24, 39, 0.8) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}