/* ============================================
   ColorCraft - Color Palette Generator
   Complete Stylesheet
   ============================================ */

/* CSS Variables */
:root {
    /* Colors */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #f472b6;
    --accent: #22d3ee;
    
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #25253d;
    --bg-card: #1e1e35;
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --border: #2e2e4a;
    --border-light: #3f3f5a;
    
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-bg: linear-gradient(180deg, #0f0f23 0%, #1a1a2e 100%);
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Spacing */
    --header-height: 72px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Header
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(15, 15, 35, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    font-size: 1.75rem;
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    z-index: 999;
}

.mobile-menu.active {
    display: flex;
}

.mobile-nav-link {
    font-size: 1.125rem;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
    border-color: var(--border-light);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

.btn-block {
    width: 100%;
}

.btn-icon {
    font-size: 1.1em;
}

kbd {
    display: inline-block;
    padding: 3px 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 0 var(--border);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.3), transparent),
        radial-gradient(ellipse 60% 50% at 80% 50%, rgba(236, 72, 153, 0.2), transparent),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(34, 211, 238, 0.15), transparent);
    pointer-events: none;
    animation: heroBgShift 15s ease-in-out infinite;
}

@keyframes heroBgShift {
    0%, 100% { 
        background-position: 0% 0%;
        filter: hue-rotate(0deg);
    }
    50% { 
        background-position: 100% 100%;
        filter: hue-rotate(30deg);
    }
}

/* Color Orbs Animation */
.color-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    pointer-events: none;
}

.color-orb.orb-1 {
    top: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    animation: orbFloat1 20s ease-in-out infinite;
}

.color-orb.orb-2 {
    top: 60%;
    right: 10%;
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #22d3ee, #8b5cf6);
    animation: orbFloat2 18s ease-in-out infinite;
}

.color-orb.orb-3 {
    bottom: 20%;
    left: 30%;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #f472b6, #fb923c);
    animation: orbFloat3 22s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, 30px) scale(1.1); }
    66% { transform: translate(-30px, 50px) scale(0.9); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, -20px) scale(0.95); }
    66% { transform: translate(30px, -40px) scale(1.05); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -30px) scale(1.1); }
}

/* Color Swatch Grid Pattern */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='5' y='5' width='10' height='10' rx='2' fill='%236366f1' opacity='0.05'/%3E%3Crect x='25' y='5' width='10' height='10' rx='2' fill='%23ec4899' opacity='0.05'/%3E%3Crect x='5' y='25' width='10' height='10' rx='2' fill='%2322d3ee' opacity='0.05'/%3E%3Crect x='25' y='25' width='10' height='10' rx='2' fill='%238b5cf6' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.hero-hint {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ============================================
   Generator Section
   ============================================ */
.generator-section {
    padding: 60px 0;
}

.controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.controls-left,
.controls-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.harmony-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.harmony-selector label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    white-space: nowrap;
}

.select {
    appearance: none;
    background: var(--bg-tertiary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a1a1aa' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 12px center;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 36px 10px 14px;
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.select:hover,
.select:focus {
    border-color: var(--primary);
    outline: none;
}

.export-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 14px;
    text-align: left;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* ============================================
   Palette Container
   ============================================ */
.palette-container {
    display: flex;
    min-height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.color-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    position: relative;
    cursor: pointer;
    transition: all var(--transition-base);
    min-height: 400px;
}

.color-card:hover {
    flex: 1.15;
}

.color-card.locked::before {
    content: '🔒';
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 1.25rem;
    opacity: 0.8;
}

.color-card-content {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 16px;
    border-radius: var(--radius-md);
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-fast);
}

.color-card:hover .color-card-content {
    opacity: 1;
    transform: translateY(0);
}

.color-hex {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.color-actions {
    display: flex;
    gap: 8px;
}

.color-action-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.color-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.color-action-btn.locked {
    background: var(--primary);
}

.shortcuts-hint {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.shortcuts-hint span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================
   Modals
   ============================================ */
.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-base);
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-large {
    max-width: 800px;
}

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

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

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

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--border);
}

/* Color Adjuster */
.color-preview-large {
    width: 100%;
    height: 120px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.adjuster-sliders {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.slider-group {
    display: grid;
    grid-template-columns: 80px 1fr 50px;
    align-items: center;
    gap: 16px;
}

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

.slider-group input[type="range"] {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    cursor: pointer;
}

.slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.slider-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider-value {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: right;
}

.color-codes-display {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.code-item {
    background: var(--bg-tertiary);
    padding: 12px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.code-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.code-item code {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-primary);
}

/* Image Extractor */
.image-preview-container {
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview-container img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.extracted-colors {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.extracted-color {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 3px solid transparent;
    transition: all var(--transition-fast);
}

.extracted-color:hover,
.extracted-color.selected {
    border-color: white;
    transform: scale(1.1);
}

/* Premium Modal */
.premium-content {
    text-align: center;
}

.premium-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.premium-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.feature-icon {
    font-size: 1.25rem;
}

.premium-pricing .price {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.premium-pricing .price span {
    font-size: 1rem;
    font-weight: 400;
}

.premium-pricing p {
    color: var(--text-muted);
    margin-top: 8px;
}

/* ============================================
   Sections
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Trending & Saved Palettes */
.trending-section,
.saved-section {
    padding: 80px 0;
}

.saved-section {
    background: var(--bg-secondary);
}

.palettes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.palette-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    cursor: pointer;
}

.palette-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.palette-colors {
    display: flex;
    height: 120px;
}

.palette-colors > div {
    flex: 1;
}

.palette-info {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.palette-name {
    font-weight: 600;
    font-size: 0.875rem;
}

.palette-actions {
    display: flex;
    gap: 8px;
}

.palette-action {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.palette-action:hover {
    background: var(--bg-tertiary);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* ============================================
   Tools Section
   ============================================ */
.tools-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.tool-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.1));
    border-radius: 16px;
    position: relative;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.3);
}

.tool-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card:hover .tool-icon::before {
    opacity: 1;
}

.tool-icon svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
    stroke-width: 1.5;
}

.tool-card h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.tool-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.affiliate-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    border-radius: var(--radius-full);
}

/* ============================================
   Share Section
   ============================================ */
.share-section {
    padding: 60px 0;
}

.share-card {
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
}

.share-card h2 {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.share-card p {
    opacity: 0.9;
    margin-bottom: 24px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.share-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: white;
    transition: all var(--transition-fast);
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.share-btn svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 16px;
    max-width: 300px;
}

.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.footer-column a {
    display: block;
    color: var(--text-muted);
    padding: 8px 0;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ============================================
   Toast Notifications
   ============================================ */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
}

.toast.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.toast.success {
    border-color: var(--success);
}

.toast.error {
    border-color: var(--error);
}

.toast-icon {
    font-size: 1.25rem;
}

.toast-message {
    font-size: 0.875rem;
}

/* ============================================
   Ad Container
   ============================================ */
.ad-container {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: none; /* Show when AdSense is configured */
}

.ad-placeholder {
    background: var(--bg-tertiary);
    border: 1px dashed var(--border);
    padding: 10px 40px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + 40px);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .controls-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .controls-left,
    .controls-right {
        justify-content: center;
    }
    
    .palette-container {
        flex-direction: column;
        min-height: 600px;
    }
    
    .color-card {
        min-height: 120px;
    }
    
    .color-card:hover {
        flex: 1;
    }
    
    .color-card-content {
        opacity: 1;
        transform: translateY(0);
    }
    
    .shortcuts-hint {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand p {
        margin: 16px auto 0;
    }
    
    .share-card {
        padding: 32px 24px;
    }
    
    .btn-text {
        display: none;
    }
    
    .color-codes-display {
        grid-template-columns: 1fr;
    }
    
    .slider-group {
        grid-template-columns: 70px 1fr 45px;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .palettes-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 16px;
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

.color-card {
    animation: slideIn 0.4s ease backwards;
}

.color-card:nth-child(1) { animation-delay: 0s; }
.color-card:nth-child(2) { animation-delay: 0.05s; }
.color-card:nth-child(3) { animation-delay: 0.1s; }
.color-card:nth-child(4) { animation-delay: 0.15s; }
.color-card:nth-child(5) { animation-delay: 0.2s; }

/* ============================================
   Scrollbar Styling
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}

/* Selection */
::selection {
    background: var(--primary);
    color: white;
}
