/* Mirror Premium Design System v2.7 */
:root {
    --primary: #818cf8; /* Vibrant Indigo */
    --primary-light: rgba(129, 140, 248, 0.1);
    --secondary: #fb7185; /* Soft Rose */
    --bg-main: #020617; /* Deepest Navy */
    --text-main: #f8fafc; /* Slate 50 - Bright White */
    --text-body: #94a3b8; /* Slate 400 - Soft Muted */
    --text-muted: #64748b; /* Slate 500 */
    --card-bg: rgba(30, 41, 59, 0.7); /* Translucent Slate 800 */
    --border: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.3);
    --gradient: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
    --mesh-gradient: radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), 
                     radial-gradient(at 50% 0%, hsla(225,39%,10%,1) 0, transparent 50%), 
                     radial-gradient(at 100% 0%, hsla(339,49%,15%,1) 0, transparent 50%);
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    background-color: var(--bg-main);
    background-image: var(--mesh-gradient);
    color: var(--text-main);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px; /* Slightly tighter for better focus */
    margin: 0 auto;
    padding: 30px 24px 60px; /* Consistent 24px padding */
}

header {
    text-align: center;
    margin-bottom: 50px;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 950;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
    letter-spacing: -4px;
}

header .description {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
    font-weight: 500;
}

.mirror-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.mirror-card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(20px);
    border-radius: 40px;
    padding: 45px;
    box-shadow: var(--shadow-premium);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mirror-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 0;
}

.mirror-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 45px 70px -15px rgba(99, 102, 241, 0.15);
    border-color: var(--primary-light);
}

.mirror-card:hover::before { opacity: 0.6; }

.card-content { position: relative; z-index: 1; }

.icon-box {
    width: 90px;
    height: 90px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.floating-emoji {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 2.8rem;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.15));
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(8deg); }
}

.mirror-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.9rem;
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: -1px;
    color: #fff;
}

.mirror-desc {
    font-size: 1.05rem;
    color: #cbd5e1;
    margin-bottom: 30px;
    line-height: 1.7;
    position: relative;
}

.preview-box {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 28px;
    margin-bottom: 35px;
    text-align: left;
    color: #e2e8f0;
}

.preview-box li, .preview-box ul {
    color: #e2e8f0 !important;
}

.preview-box ul {
    margin: 0;
    padding-left: 20px;
}

.preview-box li {
    margin-bottom: 8px;
    font-weight: 500;
}

.preview-box h5 {
    margin: 0 0 15px;
    color: var(--primary);
    font-weight: 900;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.type-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.type-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #94a3b8;
    border: 1px solid var(--glass-border);
    transition: all 0.2s;
}

.mirror-card:hover .mirror-desc {
    color: #fff;
}

.mirror-card:hover .preview-box {
    background: rgba(15, 23, 42, 0.85);
    border-color: var(--primary);
}

.mirror-card:hover .preview-box li {
    color: #fff !important;
}

.mirror-card:hover .type-tag {
    background: var(--primary);
    color: #fff;
    border-color: transparent;
}

.btn-group {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.btn {
    padding: 12px 24px;
    min-height: 64px;
    border-radius: 20px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    font-size: 1rem;
    flex: 1;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-sizing: border-box;
}

.btn-light { background: rgba(255, 255, 255, 0.05); color: #fff; border: 1px solid rgba(255, 255, 255, 0.1); }
.btn-primary { background: var(--gradient); color: white; box-shadow: 0 10px 25px -5px rgba(129, 140, 248, 0.4); border: none; }
.btn-outline { 
    background: rgba(255, 255, 255, 0.03); 
    color: #fff !important; 
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    min-height: 64px;
    font-size: 1rem;
    border-radius: 20px;
    margin-top: 15px;
}

.btn-outline:hover { 
    background: rgba(255, 255, 255, 0.1); 
    border-color: #fff;
    color: #fff !important; 
}

.btn-stacked {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    gap: 2px;
}

.btn-stacked .main-label {
    font-size: 1rem;
    font-weight: 800;
}

.btn-stacked .sub-label {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.7;
}
.btn-light:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--primary); }
.btn-primary:hover { box-shadow: 0 15px 35px -5px rgba(129, 140, 248, 0.6); opacity: 0.9; }

/* Accent Colors Optimization */
.card-T .icon-box { background: #dbeafe; color: #2563eb; }
.card-I .icon-box { background: #fce7f3; color: #db2777; }
.card-L .icon-box { background: #f3e8ff; color: #7c3aed; }
.card-A .icon-box { background: #fef3c7; color: #d97706; }
.card-S .icon-box { background: #dcfce7; color: #059669; }
.card-G .icon-box { background: #e0f2fe; color: #0284c7; }
.card-C .icon-box { background: #fae8ff; color: #a21caf; }
.card-P .icon-box { background: #ffedd5; color: #ea580c; }
.card-V .icon-box { background: #f1f5f9; color: #475569; }

/* Remove Legacy Ad Placeholders */
.ad-sidebar, .ad-mobile-top, .ad-mobile-bottom { display: none !important; }

/* Header fix for mobile - Optimized for Compact Premium Feel */
@media (max-width: 1100px) {
    .container { padding: 10px 12px; } /* Slightly more side padding for balance */
    .mirror-grid { grid-template-columns: 1fr; gap: 12px; }
    .mirror-card { padding: 20px 16px; border-radius: 20px; } /* More compact padding */
    header h1 { font-size: 2.1rem; letter-spacing: -2px; line-height: 1.1; } /* Reduced from 2.6rem */
    header .description { font-size: 0.95rem; padding: 0 10px; line-height: 1.5; }
    .mirror-title { font-size: 1.35rem; margin-bottom: 10px; } /* Reduced from 1.5rem */
    .mirror-desc { font-size: 0.9rem; line-height: 1.5; margin-bottom: 20px; color: #94a3b8; }
    .preview-box { padding: 15px; margin-bottom: 18px; border-radius: 16px; background: rgba(15, 23, 42, 0.9); }
    .preview-box h5 { font-size: 0.95rem; margin-bottom: 10px; }
    .preview-box li { font-size: 0.85rem; margin-bottom: 5px; }
    
    .btn { 
        padding: 10px 14px; 
        font-size: 0.9rem; 
        min-height: 52px; /* Reduced from 64px */
        border-radius: 16px; 
    }
    .btn-group { gap: 10px; }
    .btn-outline { 
        display: inline-flex !important;
        width: 100% !important; 
        min-height: 52px !important;
        font-size: 0.95rem !important;
        border-radius: 16px !important;
        margin-top: 8px !important;
    }
}

/* Cleanup Sidebar Layout */
.sidebar-layout { display: block; }
.main-content { width: 100%; }

