/* ============================================
   MODERN URGE DECODER WEBSITE STYLES
   ============================================ */

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Modern Color Palette */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    
    /* Neutrals */
    --bg-primary: #0a0a0f;
    --bg-secondary: #13131a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.08);
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ANIMATED BACKGROUND */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.8) 0%, transparent 70%);
    top: -250px;
    right: -250px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.6) 0%, transparent 70%);
    bottom: -200px;
    left: -200px;
    animation-delay: 7s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.5) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -50px) scale(1.1); }
    50% { transform: translate(-30px, 50px) scale(0.9); }
    75% { transform: translate(30px, 30px) scale(1.05); }
}

/* CONTAINER */
.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-lg);
    min-height: 100vh;
}

/* HEADER */
.header {
    margin-bottom: var(--space-xl);
    animation: slideDown 0.6s ease-out;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.header-title {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.history-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.history-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    color: var(--primary-light);
    transform: translateY(-2px);
}

/* HERO SECTION */
.hero-section {
    text-align: center;
    margin-bottom: var(--space-xl);
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: var(--space-md);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.hero-description strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* HERO STATS */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* HEADER BADGE */
.header-badge {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--success);
}

/* COMPACT FEATURE PILLS */
.feature-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    animation: fadeIn 0.8s ease-out 0.4s both;
}

.feature-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.feature-pill svg {
    color: var(--primary-light);
}

/* SPECIALIZED AI NOTICE */
.ai-notice {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    max-width: 800px;
    margin: var(--space-md) auto;
    padding: var(--space-sm) var(--space-md);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-md);
    animation: fadeIn 0.8s ease-out 0.5s both;
}

.ai-notice-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-sm);
    color: white;
}

.ai-notice-icon svg {
    width: 18px;
    height: 18px;
}

.ai-notice-content {
    flex: 1;
}

.ai-notice-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.ai-notice-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.ai-notice-text strong {
    color: var(--text-primary);
}

/* INPUT SECTION */
.input-section {
    max-width: 800px;
    margin: 0 auto var(--space-xl);
    animation: fadeIn 0.8s ease-out 0.5s both;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-arrow {
    font-size: 2rem;
    color: var(--primary-light);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(8px);
    }
    60% {
        transform: translateY(4px);
    }
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.ai-trained-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(236, 72, 153, 0.15) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-light);
}

.ai-trained-badge svg {
    flex-shrink: 0;
}

.input-wrapper {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    transition: var(--transition);
}

.input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* More visible input on mobile */
@media (max-width: 768px) {
    .input-wrapper {
        border: 2px solid rgba(255, 255, 255, 0.25);
        background: rgba(255, 255, 255, 0.05);
    }
}

.urge-input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    min-height: 160px;
    outline: none;
}

.urge-input::placeholder {
    color: var(--text-muted);
}

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
}

.input-hint {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Character Counter */
.char-counter {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.char-counter.too-short {
    color: var(--warning);
}

.char-counter.valid {
    color: var(--success);
}

.char-counter.at-limit {
    color: var(--secondary);
}

.decode-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.decode-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.decode-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.decode-btn:hover::before {
    left: 100%;
}

.decode-btn:active {
    transform: translateY(0);
}

.decode-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-icon {
    transition: transform 0.3s;
}

.decode-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* RESULT SECTION */
.result-section {
    max-width: 900px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease-out;
}

/* No Result State */
.no-result {
    max-width: 500px;
    margin: var(--space-xl) auto;
    text-align: center;
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    animation: fadeIn 0.5s ease-out;
}

.no-result-icon {
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.no-result h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.no-result p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.loading-placeholder {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-muted);
}

.result-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--success);
    margin-bottom: var(--space-md);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.result-title {
    font-size: 2rem;
    font-weight: 800;
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* ANALYSIS CARD */
.analysis-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    line-height: 1.8;
}

.analysis-header {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--primary-light);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-md);
}

.analysis-header:first-child {
    margin-top: 0;
}

.real-work-header {
    font-size: 1.375rem;
    font-weight: 800;
    color: #ef4444;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.symbol-header {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: var(--space-md);
    margin-bottom: var(--space-sm);
}

.represents-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fbbf24;
    margin-top: var(--space-sm);
    margin-bottom: var(--space-xs);
    margin-left: var(--space-sm);
}

.bullet-point {
    display: flex;
    gap: var(--space-sm);
    margin-left: var(--space-md);
    margin-top: var(--space-xs);
    margin-bottom: var(--space-xs);
}

.bullet-text {
    font-size: 1rem;
    color: var(--primary-light);
    font-weight: 700;
    flex-shrink: 0;
}

.analysis-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.quote-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--success);
    font-weight: 600;
    font-style: italic;
    margin: var(--space-md) 0;
    padding-left: var(--space-md);
    border-left: 3px solid var(--success);
}

.empty-line {
    height: var(--space-sm);
}

/* ACTION BUTTONS */
.result-actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.secondary-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.primary-btn {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* HISTORY SIDEBAR */
.history-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: var(--bg-secondary);
    backdrop-filter: blur(40px);
    border-left: 1px solid var(--border-color);
    box-shadow: -4px 0 40px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.history-sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    padding: var(--space-xl) var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.sidebar-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: var(--space-xs);
}

.sidebar-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.history-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg);
}

.history-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    transform: translateX(-4px);
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.history-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.delete-history-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: #ef4444;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
}

.history-item:hover .delete-history-btn {
    opacity: 1;
}

.delete-history-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

.history-void-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.empty-history {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
}

.empty-history svg {
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: var(--space-md);
}

.empty-history-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.empty-history-subtext {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.5;
}

/* LOADING OVERLAY */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.loading-content {
    text-align: center;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(99, 102, 241, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--space-md);
}

.loading-text {
    font-size: 1.125rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.loading-subtext {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* UTILITIES */
.hidden {
    display: none !important;
}

/* ANIMATIONS */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* SCROLLBAR */
.history-content::-webkit-scrollbar {
    width: 8px;
}

.history-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}

.history-content::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 4px;
}

.history-content::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .container {
        padding: var(--space-sm);
    }
    
    .header-content {
        padding: var(--space-sm) var(--space-md);
    }
    
    .header-title {
        font-size: 1.1rem;
    }
    
    .header-badge {
        display: none;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
    }
    
    .logo-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .history-btn span {
        display: none;
    }
    
    .hero-section {
        padding: var(--space-lg) var(--space-sm);
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-sm);
        padding: var(--space-sm);
        width: 100%;
        max-width: 100%;
    }
    
    .stat-item {
        flex-direction: row;
        gap: var(--space-sm);
        width: 100%;
        justify-content: center;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .stat-divider {
        width: 60px;
        height: 1px;
    }
    
    .feature-pills {
        gap: var(--space-xs);
    }
    
    .feature-pill {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }
    
    .ai-notice {
        flex-direction: column;
        padding: var(--space-md);
        gap: var(--space-sm);
        text-align: center;
    }
    
    .ai-notice-icon {
        margin: 0 auto;
    }
    
    .ai-notice-text {
        font-size: 0.85rem;
    }
    
    .section-header {
        margin-bottom: var(--space-md);
    }
    
    .section-title-wrapper {
        flex-direction: column;
        gap: 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-arrow {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
    }
    
    .ai-trained-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }
    
    .input-section {
        padding: var(--space-md);
    }
    
    .input-wrapper {
        padding: var(--space-md);
    }
    
    .urge-input {
        font-size: 1rem;
        min-height: 140px;
    }
    
    .input-footer {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: stretch;
    }
    
    .input-hint {
        justify-content: center;
        font-size: 0.8rem;
    }
    
    .char-counter {
        text-align: center;
    }
    
    .decode-btn {
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }
    
    .result-section {
        padding: var(--space-md);
    }
    
    .result-header {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: flex-start;
    }
    
    .result-actions {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .result-actions button {
        width: 100%;
    }
    
    .history-sidebar {
        max-width: 100%;
    }
    
    .analysis-card {
        padding: var(--space-md);
    }
    
    .analysis-header {
        font-size: 1rem;
    }
    
    .seo-content {
        padding: var(--space-md);
        margin-top: var(--space-lg);
    }
    
    .seo-article h2 {
        font-size: 1.35rem;
    }
    
    .seo-article h3 {
        font-size: 1.05rem;
    }
    
    .seo-article p,
    .seo-article ol {
        font-size: 0.9rem;
    }
    
    .footer {
        padding: var(--space-md) 0;
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: center;
    }
    
    .footer-copy,
    .footer-disclaimer {
        font-size: 0.75rem;
        padding: 0 var(--space-sm);
    }
}

@media (max-width: 480px) {
    .container {
        padding: var(--space-xs);
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .hero-stats {
        padding: var(--space-xs);
    }
    
    .stat-number {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .decode-btn {
        font-size: 0.95rem;
        padding: 0.875rem 1.25rem;
    }
    
    .analysis-header {
        font-size: 0.95rem;
    }
    
    .input-section,
    .result-section {
        padding: var(--space-sm);
    }
    
    .input-wrapper {
        padding: var(--space-sm);
    }
    
    .seo-content {
        padding: var(--space-sm);
    }
    
    .seo-article h2 {
        font-size: 1.2rem;
    }
    
    .seo-article h3 {
        font-size: 1rem;
    }
}

/* ============================================
   SEO CONTENT SECTION
   ============================================ */
.seo-content {
    margin-top: var(--space-xl);
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.seo-article h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    line-height: 1.3;
}

.seo-article h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.seo-article p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

.seo-article ol {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: var(--space-md) 0;
    padding-left: var(--space-lg);
}

.seo-article ol li {
    margin-bottom: var(--space-sm);
}

.seo-article strong {
    color: var(--text-primary);
}

/* ============================================
   FOOTER STYLES
   ============================================ */
.footer {
    margin-top: var(--space-xl);
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: var(--space-xs);
}

.footer-disclaimer {
    color: var(--text-muted);
    font-size: 0.75rem;
    max-width: 500px;
    margin: 0 auto;
    opacity: 0.7;
}

/* ============================================
   LEGAL PAGES STYLES
   ============================================ */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-lg) 0;
    animation: fadeIn 0.5s ease-out;
}

.legal-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--space-sm);
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-xl);
}

.legal-section {
    margin-bottom: var(--space-lg);
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.legal-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.legal-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section ul {
    color: var(--text-secondary);
    line-height: 1.7;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.legal-section li {
    margin-bottom: var(--space-xs);
}

.legal-section a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

.legal-section a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* Logo link for legal pages */
.logo-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
}

.logo-link .header-title {
    -webkit-text-fill-color: unset;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   CONTACT PAGE STYLES
   ============================================ */
.contact-page .contact-intro {
    font-size: 1.1rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    margin: var(--space-xl) 0;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.contact-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    color: white;
}

.contact-card h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.contact-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
}

.contact-email {
    display: inline-block;
    color: var(--primary-light);
    font-weight: 600;
    text-decoration: none;
    padding: var(--space-xs) var(--space-sm);
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.contact-email:hover {
    background: rgba(99, 102, 241, 0.2);
    color: var(--secondary);
}

.response-time {
    text-align: center;
}

/* Hero subtitle for SEO */
.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

@media (max-width: 768px) {
    .legal-title {
        font-size: 1.5rem;
    }
    
    .legal-section {
        padding: var(--space-sm);
    }
    
    .legal-section h2 {
        font-size: 1.1rem;
    }
    
    .legal-section p,
    .legal-section li {
        font-size: 0.9rem;
    }
    
    .footer-links {
        gap: var(--space-md);
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
    }
    
    .contact-card {
        padding: var(--space-md);
    }
}
