/* ===================================
   AESTHETIC QUOTE GENERATOR - STYLES
   Premium Design by ProcZ
   =================================== */

/* CSS Custom Properties / Design Tokens */
:root {
    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-quote: 'Cormorant Garamond', Georgia, serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px var(--glow-color);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Z-index layers */
    --z-background: -1;
    --z-base: 1;
    --z-card: 10;
    --z-header: 100;
    --z-modal: 1000;
    --z-toast: 2000;
}

/* ===== FOREST THEME ===== */
[data-theme="forest"] {
    --primary: #2d5a27;
    --primary-light: #4a8c3f;
    --primary-dark: #1a3d18;
    --accent: #7cb342;
    --accent-glow: rgba(124, 179, 66, 0.4);

    --bg-gradient-1: linear-gradient(135deg, #1a2f23 0%, #0d1f15 50%, #162921 100%);
    --bg-gradient-2: linear-gradient(45deg, rgba(45, 90, 39, 0.3) 0%, rgba(26, 61, 24, 0.5) 100%);

    --text-primary: #e8f5e9;
    --text-secondary: rgba(232, 245, 233, 0.7);
    --text-muted: rgba(232, 245, 233, 0.5);

    --card-bg: rgba(30, 60, 35, 0.6);
    --card-border: rgba(124, 179, 66, 0.2);
    --card-glow: rgba(124, 179, 66, 0.1);

    --glass-bg: rgba(30, 60, 35, 0.4);
    --glass-border: rgba(124, 179, 66, 0.15);

    --glow-color: rgba(124, 179, 66, 0.3);
    --particle-color: rgba(124, 179, 66, 0.6);
}

/* ===== NIGHT THEME ===== */
[data-theme="night"] {
    --primary: #1a237e;
    --primary-light: #3949ab;
    --primary-dark: #0d1441;
    --accent: #7c4dff;
    --accent-glow: rgba(124, 77, 255, 0.4);

    --bg-gradient-1: linear-gradient(135deg, #0a0e1a 0%, #0d1525 50%, #111827 100%);
    --bg-gradient-2: linear-gradient(45deg, rgba(26, 35, 126, 0.3) 0%, rgba(13, 20, 65, 0.5) 100%);

    --text-primary: #e8eaf6;
    --text-secondary: rgba(232, 234, 246, 0.7);
    --text-muted: rgba(232, 234, 246, 0.5);

    --card-bg: rgba(26, 35, 80, 0.5);
    --card-border: rgba(124, 77, 255, 0.2);
    --card-glow: rgba(124, 77, 255, 0.1);

    --glass-bg: rgba(26, 35, 80, 0.4);
    --glass-border: rgba(124, 77, 255, 0.15);

    --glow-color: rgba(124, 77, 255, 0.3);
    --particle-color: rgba(255, 255, 255, 0.8);
}

/* ===== SKY THEME ===== */
[data-theme="sky"] {
    --primary: #0277bd;
    --primary-light: #4fc3f7;
    --primary-dark: #01579b;
    --accent: #ff7043;
    --accent-glow: rgba(255, 112, 67, 0.4);

    --bg-gradient-1: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
    --bg-gradient-2: linear-gradient(180deg, rgba(255, 183, 77, 0.2) 0%, rgba(255, 112, 67, 0.1) 100%);

    --text-primary: #1a237e;
    --text-secondary: rgba(26, 35, 126, 0.7);
    --text-muted: rgba(26, 35, 126, 0.5);

    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(2, 119, 189, 0.2);
    --card-glow: rgba(255, 112, 67, 0.15);

    --glass-bg: rgba(255, 255, 255, 0.5);
    --glass-border: rgba(2, 119, 189, 0.15);

    --glow-color: rgba(255, 112, 67, 0.3);
    --particle-color: rgba(255, 255, 255, 0.9);
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    transition: color var(--transition-slow), background var(--transition-slow);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== ANIMATED BACKGROUND ===== */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-background);
    overflow: hidden;
}

.bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 1.5s ease-in-out, transform 20s ease-in-out;
}

.bg-layer-1 {
    background: var(--bg-gradient-1);
    opacity: 1;
}

.bg-layer-2 {
    opacity: 0;
    transform: scale(1.05);
}

.bg-layer-2.active {
    opacity: 1;
    transform: scale(1);
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-gradient-2);
    pointer-events: none;
}

/* Particle Animation */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--particle-color);
    border-radius: 50%;
    opacity: 0;
    animation: float-up 8s ease-in infinite;
}

[data-theme="night"] .particle {
    animation: twinkle 3s ease-in-out infinite;
    width: 2px;
    height: 2px;
    box-shadow: 0 0 6px var(--particle-color);
}

[data-theme="sky"] .particle {
    width: 60px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    filter: blur(8px);
    animation: cloud-float 20s linear infinite;
}

@keyframes float-up {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(-100px) scale(1);
    }
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

@keyframes cloud-float {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateX(calc(100vw + 100px));
        opacity: 0;
    }
}

/* Ambient Glow */
.ambient-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: pulse-glow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* ===== APP CONTAINER ===== */
.app-container {
    position: relative;
    z-index: var(--z-base);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: var(--space-md);
}

/* ===== HEADER ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    width: 28px;
    height: 28px;
    color: var(--accent);
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    25% {
        transform: rotate(-10deg) scale(1.1);
    }

    75% {
        transform: rotate(10deg) scale(1.1);
    }
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

/* Toggle Switch */
.toggle-container {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.toggle-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-base);
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent);
    border-radius: 50%;
    transition: var(--transition-bounce);
    box-shadow: 0 2px 8px var(--accent-glow);
}

.toggle-switch input:checked+.toggle-slider::before {
    transform: translateY(-50%) translateX(22px);
}

/* Theme Selector */
.theme-selector {
    display: flex;
    gap: var(--space-xs);
    padding: var(--space-xs);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
}

.theme-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-base);
}

.theme-btn:hover {
    color: var(--text-primary);
    background: var(--glass-border);
}

.theme-btn.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.theme-btn svg {
    width: 20px;
    height: 20px;
}

/* Nav Button */
.nav-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border: none;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-base);
}

.nav-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: scale(1.05);
}

.nav-btn svg {
    width: 20px;
    height: 20px;
}

.favorites-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px var(--accent-glow);
    transition: var(--transition-bounce);
}

.favorites-count.bump {
    animation: bump 0.4s ease;
}

@keyframes bump {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xl);
    padding: var(--space-xl) 0;
}

/* ===== QUOTE CARD ===== */
.quote-card {
    position: relative;
    max-width: 700px;
    width: 100%;
    padding: var(--space-3xl) var(--space-2xl);
    background: var(--card-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg), 0 0 60px var(--card-glow);
    animation: fadeInUp 0.8s ease-out;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.quote-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), 0 0 80px var(--card-glow);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quote-decoration {
    position: absolute;
    color: var(--accent);
    opacity: 0.3;
}

.quote-decoration.top-left {
    top: var(--space-lg);
    left: var(--space-lg);
}

.quote-decoration.bottom-right {
    bottom: var(--space-lg);
    right: var(--space-lg);
    transform: rotate(180deg);
}

.quote-decoration svg {
    width: 32px;
    height: 32px;
}

.quote-content {
    text-align: center;
}

.quote-text {
    font-family: var(--font-quote);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
    font-style: italic;
    transition: opacity var(--transition-base);
}

.quote-text.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

.quote-author {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.5px;
    transition: opacity var(--transition-base);
}

.quote-author.fade-out {
    opacity: 0;
}

/* ===== QUOTE ACTIONS ===== */
.quote-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border: none;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-base);
}

.action-btn:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--accent), var(--primary-light));
    color: white;
    border: none;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.action-btn.primary:hover {
    box-shadow: 0 8px 30px var(--accent-glow);
}

.action-btn.danger {
    border-color: #ef5350;
    color: #ef5350;
}

.action-btn.danger:hover {
    background: rgba(239, 83, 80, 0.1);
    box-shadow: 0 8px 25px rgba(239, 83, 80, 0.3);
}

.action-btn svg {
    width: 18px;
    height: 18px;
}

.action-btn.favorited {
    color: #ff4757;
    border-color: #ff4757;
}

.action-btn.favorited svg {
    fill: #ff4757;
}

/* ===== SHARE SECTION ===== */
.share-section {
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.share-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.share-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    color: white;
}

.share-btn svg {
    width: 24px;
    height: 24px;
}

.share-btn:hover {
    transform: translateY(-4px) scale(1.1);
}

.share-btn.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.share-btn.instagram {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    box-shadow: 0 4px 20px rgba(131, 58, 180, 0.4);
}

.share-btn.tiktok {
    background: linear-gradient(135deg, #000000, #25f4ee, #fe2c55);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.share-btn.twitter {
    background: linear-gradient(135deg, #1da1f2, #0d8cd9);
    box-shadow: 0 4px 20px rgba(29, 161, 242, 0.4);
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: var(--space-lg);
    color: var(--text-muted);
    font-size: 0.875rem;
    animation: fadeIn 1s ease-out 0.6s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    background: var(--card-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transform: translateY(30px) scale(0.95);
    transition: var(--transition-base);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--glass-border);
}

.modal-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--glass-bg);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-base);
}

.modal-close:hover {
    color: var(--accent);
    background: var(--glass-border);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-body {
    padding: var(--space-lg) var(--space-xl);
    max-height: 50vh;
    overflow-y: auto;
}

.favorites-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.favorite-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    animation: fadeInUp 0.3s ease-out;
}

.favorite-item .quote-info {
    flex: 1;
}

.favorite-item .quote-info p {
    font-family: var(--font-quote);
    font-size: 1rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    line-height: 1.5;
}

.favorite-item .quote-info span {
    font-size: 0.875rem;
    color: var(--accent);
}

.favorite-item .remove-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(239, 83, 80, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef5350;
    transition: var(--transition-base);
    flex-shrink: 0;
}

.favorite-item .remove-btn:hover {
    background: rgba(239, 83, 80, 0.2);
    transform: scale(1.1);
}

.favorite-item .remove-btn svg {
    width: 16px;
    height: 16px;
}

.empty-favorites {
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
    color: var(--text-muted);
}

.empty-favorites svg {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

.empty-favorites p {
    font-size: 1rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-xl);
    border-top: 1px solid var(--glass-border);
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-toast);
    opacity: 0;
    transition: var(--transition-base);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-icon {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.toast-message {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* ===== DOWNLOAD CANVAS ===== */
.download-canvas {
    position: fixed;
    left: -9999px;
    top: -9999px;
    width: 1080px;
    height: 1920px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: var(--space-md);
        padding: var(--space-md);
    }

    .nav-controls {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--space-md);
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .quote-card {
        padding: var(--space-2xl) var(--space-lg);
    }

    .quote-text {
        font-size: 1.25rem;
    }

    .quote-actions {
        gap: var(--space-sm);
    }

    .action-btn {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.875rem;
    }

    .action-btn span {
        display: none;
    }

    .action-btn.primary span {
        display: inline;
    }

    .share-buttons {
        gap: var(--space-sm);
    }

    .share-btn {
        width: 44px;
        height: 44px;
    }

    .share-btn svg {
        width: 20px;
        height: 20px;
    }

    .modal {
        max-height: 90vh;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-footer .action-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .app-container {
        padding: var(--space-sm);
    }

    .theme-selector {
        gap: 2px;
        padding: 2px;
    }

    .theme-btn {
        width: 34px;
        height: 34px;
    }

    .quote-card {
        padding: var(--space-xl) var(--space-md);
        border-radius: var(--radius-lg);
    }

    .quote-decoration svg {
        width: 24px;
        height: 24px;
    }

    .main-content {
        gap: var(--space-xl);
    }
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--glass-bg);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* ===== SELECTION STYLING ===== */
::selection {
    background: var(--accent);
    color: white;
}

/* ===== FOCUS STATES ===== */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}