/* ============================================================
   Name Me - Light Modern & Warm Amber (v3)
   ============================================================ */

:root {
    /* Primary Colors */
    --primary: #F59E0B;        /* Amber-500 */
    --primary-light: #FEF3C7;  /* Amber-100 */
    --primary-hover: #D97706;  /* Amber-600 */
    
    /* Neutral Palette (Softer contrast) */
    --background: #FAFAF9;     /* Stone-50 */
    --surface: #FFFFFF;
    --text-primary: #1C1917;   /* Stone-900 */
    --text-secondary: #57534E; /* Stone-600 */
    --text-muted: #A8A29E;     /* Stone-400 */
    --border: #E7E5E4;         /* Stone-200 */
    --border-light: #F5F5F4;   /* Stone-100 */
    
    /* Semantic Colors */
    --success: #10B981;        /* Emerald-500 */
    --error: #EF4444;          /* Red-500 */
    
    /* Soft Modern Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 12px 24px -6px rgba(120, 113, 108, 0.1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.2s ease-out;
}

body {
    background-color: var(--background);
    color: var(--text-primary);
    font-family: 'Pretendard Variable', Pretendard, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, .site-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700; /* Reverted from 900 */
}

/* Layout Utilities */
.gradient-border-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 2rem; /* Softened from 2.5rem */
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.gradient-border-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

/* Typography Refresh */
.site-title {
    letter-spacing: -0.02em;
}

/* Button Refinement (Warm Amber) */
.active-btn {
    background-color: var(--primary) !important;
    color: var(--surface) !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.inactive-btn {
    background-color: transparent !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border) !important;
}

.inactive-btn:hover {
    background-color: var(--background) !important;
    border-color: var(--border) !important;
}

/* Tab & Interaction */
.active-tab {
    border-bottom: 3px solid var(--primary) !important;
    color: var(--text-primary) !important;
    font-weight: 700 !important;
    background-color: transparent !important;
}

.inactive-tab {
    border-bottom: 2px solid transparent !important;
    color: var(--text-muted) !important;
}

/* Input (Simple & Clean) */
input:focus {
    outline: none;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px var(--primary-light) !important;
}

/* Heart/Like Button */
.heart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    background: transparent;
}

.heart-btn svg {
    stroke: var(--text-muted);
    stroke-width: 2.5;
    fill: transparent;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.heart-btn:hover svg {
    stroke: var(--error);
    transform: scale(1.25);
}

.heart-btn.liked svg {
    stroke: var(--error);
    fill: var(--error);
    filter: drop-shadow(0 0 12px rgba(239, 68, 68, 0.4));
    animation: heartPop 0.4s ease;
}

@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* Result Cards & Polishing */
.result-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
}

.result-card:hover {
    box-shadow: var(--shadow-bold);
}

.tag-btn {
    white-space: nowrap;
    font-weight: 700;
}

/* Notion Embed Styles (Fix v4) */
.notion-embed-container {
    width: 100%;
    height: 250px; /* Reduced to ~35% of 700px */
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--border);
    background-color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.notion-changelog-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.changelog-card {
    background: transparent;
    padding: 0;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* UI Adjustments v4/v5 */
#alphabet-input {
    font-size: 0.875rem; /* text-sm for better placeholder balance */
}

#alphabet-input::placeholder {
    font-size: 0.75rem; /* text-xs */
    font-weight: 500;
}

#suggest-btn {
    padding: 0.875rem 2rem; 
    font-size: 1.125rem; /* text-lg */
}

/* Heart Icon Refinement (Instagram Style) */
.heart-btn svg {
    stroke: var(--text-muted);
    stroke-width: 1.5; /* Thinner stroke */
    fill: transparent;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.heart-btn.liked svg {
    stroke: #ED4956; /* Instagram Red */
    fill: #ED4956;
    filter: drop-shadow(0 0 8px rgba(237, 73, 86, 0.3));
    animation: heartPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Media Queries Refinement */
@media (max-width: 768px) {
    .container {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    .notion-embed-container {
        height: 200px;
    }
}

