:root {
    /* Creative Vision Studio - Artistic Social Media Theme */
    --brand-primary: #FF6B6B;
    --brand-secondary: #6C63FF;
    --brand-accent: #26D0CE;
    --brand-fire: #FF8E53;
    --brand-golden: #FFD93D;
    --brand-coral: #FF9A8B;
    --brand-purple: #E056FD;
    --brand-instagram: linear-gradient(45deg, #E056FD 0%, #F89B29 50%, #FF6B6B 100%);
    
    /* Core Colors */
    --primary-color: var(--brand-primary);
    --primary-dark: #FF5252;
    --secondary-color: var(--brand-secondary);
    --accent-color: var(--brand-accent);
    --success-color: #00C896;
    --warning-color: #FFC107;
    --error-color: #FF5722;
    
    /* Text Colors */
    --text-primary: #2D3748;
    --text-secondary: #718096;
    --text-light: #A0AEC0;
    --text-white: #FFFFFF;
    --text-dark: #1A202C;
    
    /* Artistic Gradients */
    --gradient-sunset: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 35%, #FFD93D 100%);
    --gradient-ocean: linear-gradient(135deg, #6C63FF 0%, #4ECDC4 50%, #26D0CE 100%);
    --gradient-creative: linear-gradient(135deg, #E056FD 0%, #6C63FF 50%, #26D0CE 100%);
    --gradient-warm: linear-gradient(135deg, #FF9A8B 0%, #FF6B6B 50%, #E056FD 100%);
    
    /* Backgrounds */
    --background: var(--gradient-creative);
    --background-secondary: #FAFBFC;
    --surface: #FFFFFF;
    --surface-elevated: rgba(255, 255, 255, 0.95);
    --surface-glass: rgba(255, 255, 255, 0.15);
    
/* Borders & Dividers */
    --border: #E5E7EB;
    --border-hover: #D1D5DB;
    --border-focus: var(--primary-color);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-colored: 0 8px 25px rgba(139, 92, 246, 0.25);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    
    /* Animations */
    --transition-fast: all 0.15s ease;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Import Creative Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.65;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Artistic Background System */
.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    z-index: -1;
    overflow: hidden;
}

/* Creative floating elements */
.background-pattern::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(38, 208, 206, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 25%, rgba(255, 215, 61, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 25% 75%, rgba(108, 99, 255, 0.1) 0%, transparent 50%);
    animation: artisticFloat 25s ease-in-out infinite;
}

/* Subtle pattern overlay */
.background-pattern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="80" height="80" viewBox="0 0 80 80" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.03"><path d="M40 0C17.9 0 0 17.9 0 40s17.9 40 40 40 40-17.9 40-40S62.1 0 40 0zm0 76C20.1 76 4 59.9 4 40S20.1 4 40 4s36 16.1 36 36-16.1 36-36 36z"/><circle cx="20" cy="20" r="2"/><circle cx="60" cy="20" r="2"/><circle cx="20" cy="60" r="2"/><circle cx="60" cy="60" r="2"/></g></g></svg>') repeat;
    animation: patternDrift 30s linear infinite;
}

@keyframes artisticFloat {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg) scale(1); 
    }
    25% { 
        transform: translate(-20px, -30px) rotate(90deg) scale(1.1); 
    }
    50% { 
        transform: translate(20px, -20px) rotate(180deg) scale(0.9); 
    }
    75% { 
        transform: translate(-10px, 20px) rotate(270deg) scale(1.05); 
    }
}

@keyframes patternDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(80px, 80px); }
}

.container {
    max-width: 970px;
    margin: 0 auto;
    padding: var(--space-md);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Header */
header {
    text-align: center;
    padding: var(--space-xl) 0;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-sunset);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 20px 40px rgba(255, 107, 107, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: creativeFloat 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: logoShimmer 2s linear infinite;
}

.logo-icon i {
    color: var(--text-white);
    font-size: 2rem;
    z-index: 1;
    position: relative;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

header h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin: 0;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFD93D 30%, #FF6B6B 70%, #FFFFFF 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    position: relative;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* Add a subtle glow effect */
header h1::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    color: rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 400;
    max-width: 600px;
    margin: var(--space-sm) auto var(--space-md);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.feature-badges {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    padding: var(--space-xs) var(--space-sm);
    border-radius:5px;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition-smooth);
}

.badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* New Creative Animations */
@keyframes creativeFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        box-shadow: 0 20px 40px rgba(255, 107, 107, 0.3);
    }
    50% { 
        transform: translateY(-10px) rotate(2deg);
        box-shadow: 0 25px 50px rgba(255, 107, 107, 0.4);
    }
}

@keyframes logoShimmer {
    0% { transform: translateX(-100%) translateY(-100%); }
    100% { transform: translateX(100%) translateY(100%); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

main {
    flex: 1;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-header h2 {
    color: var(--text-white);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.section-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0;
}

/* Upload Section */
.upload-section {
    margin-bottom: var(--space-xl);
}

.upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.4);
    border-radius: 28px;
    background: 
        linear-gradient(145deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 100%),
        rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px) saturate(180%);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: var(--transition-smooth);
}

.upload-area:hover {
    border-color: rgba(255, 107, 107, 0.6);
    background: 
        linear-gradient(145deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.15) 100%),
        rgba(255, 255, 255, 0.1);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 35px 60px rgba(255, 107, 107, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 0 1px rgba(255, 107, 107, 0.2);
}

.upload-area:hover::before {
    transform: translateX(100%);
}

.upload-area.drag-over {
    border-color: rgba(255, 107, 107, 0.8);
    background: 
        linear-gradient(145deg, rgba(255, 107, 107, 0.15) 0%, rgba(255, 142, 83, 0.1) 100%),
        rgba(255, 107, 107, 0.05);
    transform: scale(1.05);
    box-shadow: 
        0 40px 80px rgba(255, 107, 107, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 0 0 2px rgba(255, 107, 107, 0.3);
}

.upload-area.disabled {
    cursor: not-allowed;
    filter: grayscale(0.3);
    transform: none !important;
}

.upload-area.disabled::before {
    display: none;
}

.upload-area.disabled:hover {
    transform: none !important;
    border-color: rgba(255, 255, 255, 0.3);
    background: 
        linear-gradient(145deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%),
        rgba(255, 255, 255, 0.05);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.upload-area.disabled .upload-content h3,
.upload-area.disabled .upload-content p {
    opacity: 0.5;
}

.upload-area.disabled .upload-icon {
    opacity: 0.6;
    background: rgba(255, 255, 255, 0.1) !important;
}

.upload-area.disabled:hover .upload-icon {
    transform: none !important;
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 
        0 15px 35px rgba(108, 99, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.upload-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-md);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 
        0 15px 35px rgba(108, 99, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.upload-icon::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.6s;
}

.upload-area:hover .upload-icon {
    transform: rotate(5deg) scale(1.15);
    background: var(--gradient-sunset);
    box-shadow: 
        0 20px 50px rgba(255, 107, 107, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.upload-area:hover .upload-icon::before {
    left: 100%;
}

.upload-content i {
    font-size: 2.5rem;
    color: var(--text-white);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    z-index: 1;
    position: relative;
}

.upload-content h3 {
    font-size: 1.75rem;
    color: whitesmoke;
    margin-bottom: var(--space-sm);
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.upload-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
    font-weight: 400;
    opacity: 0.9;
}

.browse-btn {
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border-bottom: 2px solid var(--primary-color);
    transition: var(--transition-fast);
}

.browse-btn:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}

.upload-specs {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.upload-specs span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #474747;
    font-size: 0.875rem;
    font-weight: 500;
}

.upload-specs i {
    font-size: 0.75rem;
}

.file-info {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.file-details {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-details i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.file-name {
    font-weight: 600;
    color: var(--text-primary);
}

.file-size {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.remove-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.remove-btn:hover {
    color: var(--error-color);
    background: #fef2f2;
}

/* Preview Section */
.preview-section {
    margin-bottom: 2rem;
}

.image-container {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 750px;
    margin: 0 auto;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 1rem;
}

.image-info {
    color: white;
    font-size: 0.875rem;
}

/* Analysis Section */
.analysis-section {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.analyze-container {
    margin-bottom: var(--space-lg);
}

.analyze-btn {
    background: #ff8d49;
    color: var(--text-white);
    border: none;
    padding: var(--space-md) var(--space-xl);
    border-radius: 10px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-colored);
    position: relative;
    overflow: hidden;
    display: inline;
    align-items: center;
    gap: var(--space-xs);
    min-width: 200px;
    justify-content: center;
}

.analyze-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

.analyze-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition-smooth);
}

.analyze-btn:hover .btn-glow {
    left: 100%;
}

.analyze-hint {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-top: var(--space-sm);
    font-style: italic;
}

/* Modern Loading */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-xl);
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.spinner-modern {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid var(--primary-color);
    border-right: 4px solid var(--secondary-color);
    border-radius: var(--radius-full);
    animation: modernSpin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

@keyframes modernSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

.loading-text {
    text-align: center;
}

.loading-text h4 {
    color: var(--text-white);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.loading-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0;
}

/* Results Section */
.results-section {
    margin-bottom: var(--space-xl);
}

.results-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.results-header h2 {
    color: var(--text-white);
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    margin: 0;
}

.result-card {
    background: var(--surface-elevated);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-xl);
    margin-bottom: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.score-display {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.score-circle {
    position: relative;
    width: 160px;
    height: 160px;
    flex-shrink: 0;
}

.score-ring {
    position: relative;
    width: 100%;
    height: 100%;
}

.score-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.9rem;
    margin-left: -1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.score-label {
    display:none;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.score-description {
    flex: 1;
}

.score-description h3 {
    color: var(--text-primary);
    font-size: 1.75rem;
    margin-bottom: var(--space-xs);
    font-weight: 700;
}

.score-description p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

/* Score Meter */
.score-meter {
    margin-top: var(--space-md);
}

.meter-track {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: inherit;
    transition: width 1s ease-out, background 0.3s ease;
    width: 0;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.meter-labels {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-xs);
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-lg);
}

.reset-btn, .share-btn {
    background: var(--surface);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    min-width: 140px;
    justify-content: center;
}

.reset-btn:hover, .share-btn:hover {
    background: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.share-btn {
    background: var(--primary-color);
    color: var(--text-white);
}

.share-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.score-breakdown h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.score-ranges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.score-range {
    padding: 1rem;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.score-range.excellent {
    background: #dcfce7;
    color: #166534;
}

.score-range.good {
    background: #dbeafe;
    color: #1d4ed8;
}

.score-range.fair {
    background: #fef3c7;
    color: #92400e;
}

.score-range.poor {
    background: #fee2e2;
    color: #dc2626;
}

.range-label {
    font-weight: 600;
}

.insights-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 1.5rem;
}

.insights-card h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.insights-card h4 i {
    color: var(--warning-color);
}

.insights-content ul {
    list-style: none;
    padding-left: 0;
}

.insights-content li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    padding-left: 1.5rem;
}

.insights-content li:last-child {
    border-bottom: none;
}

/* Analysis Details Styling */
.analysis-details {
    margin-top: 1rem;
}

.detail-section {
    background: #f9fafb;
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
}

.detail-section h5 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-section h5 i {
    color: var(--primary-color);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-item .label {
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.detail-item .value {
    font-size: 0.875rem;
}

.detail-section.positive {
    background: #ecfdf5;
    border-left: 3px solid var(--success-color);
}

.detail-section.improvement {
    background: #fff7ed;
    border-left: 3px solid var(--warning-color);
}

.detail-section.research {
    background: #eff6ff;
    border-left: 3px solid var(--primary-color);
}

.insight-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.insight-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.875rem;
}

.insight-list li:last-child {
    border-bottom: none;
}

.insight-list li::before {
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.positive-item::before {
    content: "✓" !important;
    color: var(--success-color) !important;
}

.improvement-item::before {
    content: "➤" !important;
    color: var(--warning-color) !important;
}


/* Spinners */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Model Status */
.model-status {
    position: fixed;
    top: var(--space-md);
    right: var(--space-md);
    background: var(--surface-elevated);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-sm) var(--space-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: var(--transition-smooth);
    width: 320px;
    min-width: 320px;
}

.model-status.hidden {
    transform: translateY(-120px);
    opacity: 0;
}

.status-content {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.status-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.status-icon i {
 
    font-size: 1rem;
}

.status-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.status-text strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.125rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-text span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.3;
    word-wrap: break-word;
    hyphens: auto;
}

.status-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-top: 2px solid var(--primary-color);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
    flex-shrink: 0;
}

/* Footer */
footer {

    padding: var(--space-xl) 0;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%),
        rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 -10px 30px rgba(0, 0, 0, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    padding-left: 50px;
    padding-right: 50px;
}

.footer-main {
    display: block;
    text-align: center;
    margin: 0 auto;
}

.footer-section {
    max-width: 280px;
}

.footer-brand {
    text-align: left;
}

.footer-logo {
    align-items: center;
    gap: var(--space-xs);
    text-align: center;
}

.footer-logo i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.footer-logo span {
    color: var(--text-white);
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin: 0 auto;
    font-style: italic;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.footer-section h4 {
    color: var(--text-white);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section p {
    color: rgba(251, 251, 251, 0.7);
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.footer-section a {
    color: gray;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-section a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

/* Footer Bottom Section */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.footer-copyright p,
.footer-creator p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    margin: 0;
    font-weight: 400;
}

.footer-creator {
    display: flex;
    align-items: center;
}

.footer-creator i {
    color: #FF6B6B;
    margin: 0 0.25rem;
    animation: heartbeat 2s ease-in-out infinite;
}

.footer-creator a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    position: relative;
}

.footer-creator a:hover {
    color: var(--brand-golden);
    text-shadow: 0 0 8px rgba(255, 215, 61, 0.4);
}

.footer-creator a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-golden));
    transition: width 0.3s ease;
}

.footer-creator a:hover::after {
    width: 100%;
}

@keyframes heartbeat {
    0%, 50%, 100% {
        transform: scale(1);
    }
    25%, 75% {
        transform: scale(1.1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: var(--space-sm);
    }
    
    header {
        padding: var(--space-lg) 0;
    }
    
    header h1 {
        font-size: 2.25rem;
    }
    
    .tagline {
        font-size: 1.125rem;
    }
    
    .feature-badges {
        gap: var(--space-xs);
    }
    
    .badge {
        font-size: 0.75rem;
        padding: 0.375rem var(--space-xs);
    }
    
    .upload-area {
        padding: var(--space-lg) var(--space-sm);
    }
    
    .upload-icon {
        width: 60px;
        height: 60px;
    }
    
    .upload-content i {
        font-size: 1.5rem;
    }
    
    .upload-content h3 {
        font-size: 1.25rem;
    }
    
    .upload-specs {
        gap: var(--space-sm);
        flex-direction: column;
    }
    
    .score-display {
        flex-direction: column;
        text-align: center;
        gap: var(--space-lg);
    }
    
    .score-circle {
        width: 140px;
        height: 140px;
    }
    
    .score-value {
        font-size: 2rem;
    }
    
    .score-description h3 {
        font-size: 1.5rem;
    }
    
    .score-description p {
        font-size: 1rem;
    }
    
    .result-card {
        padding: var(--space-lg);
    }
    
    .insights-card {
        padding: var(--space-lg);
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .reset-btn, .share-btn {
        width: 200px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        text-align: center;
    }
    
    .footer-brand {
        text-align: center;
        margin-bottom: var(--space-lg);
        padding-left: 0;
    }
    
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        justify-items: center;
    }
    
    .footer-section {
        max-width: 100%;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }
    
    .footer-copyright,
    .footer-creator {
        width: 100%;
        justify-content: center;
    }
    
    .model-status {
        top: var(--space-sm);
        right: var(--space-sm);
        left: var(--space-sm);
        width: auto;
        min-width: auto;
        max-width: none;
    }
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sharing Modal */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: var(--space-md);
}

.share-modal-overlay.show {
    opacity: 1;
}

.share-modal {
    background: var(--surface);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
    from {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border);
}

.share-header h3 {
    margin: 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.modal-close:hover {
    background: var(--background-secondary);
    color: var(--text-primary);
}

.share-preview {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border);
}

.preview-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    color: var(--text-white);
}

.preview-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: var(--space-sm);
}

.preview-circle {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
}

.preview-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.preview-text {
    margin: 0;
    opacity: 0.9;
}

.share-platforms {
    padding: var(--space-lg);
}

.share-platforms h4 {
    margin: 0 0 var(--space-md) 0;
    color: var(--text-primary);
}

.platform-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(95px, 0fr));
    gap: 0.75rem;
    margin-bottom: var(--space-lg);
    margin-left: 10px;
}

.fa-solid, .fas {
    font-weight: 900;
    font-size: x-large;
}

.platform-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: 1rem var(--space-sm);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.875rem;
    font-weight: 500;
}

.platform-btn i {
    font-size: 1.5rem;
}

.platform-btn.twitter {
    color: #1DA1F2;
    border-color: #1DA1F2;
}

.platform-btn.twitter:hover {
    background: #1DA1F2;
    color: white;
}

.platform-btn.facebook {
    color: #4267B2;
    border-color: #4267B2;
}

.platform-btn.facebook:hover {
    background: #4267B2;
    color: white;
}

.platform-btn.linkedin {
    color: #0077B5;
    border-color: #0077B5;
}

.platform-btn.linkedin:hover {
    background: #0077B5;
    color: white;
}

.platform-btn.instagram {
    color: #E4405F;
    border-color: #E4405F;
}

.platform-btn.instagram:hover {
    background: #E4405F;
    color: white;
}

.share-options {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.share-option-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 500;
    font-size: 0.875rem;
    min-width: 140px;
}

.share-option-btn:hover {
    background: var(--primary-color);
    color: white;
}
