/* EGO - Common Styles */

:root {
    /* Primary Purple Theme Colors */
    --primary-color: #9b59b6;
    --primary-dark: #8e44ad;
    --primary-light: #a569bd;
    --primary-gradient: linear-gradient(135deg, #9b59b6, #a569bd);

    /* Neutral Colors */
    --text-primary: #333;
    --text-secondary: #666;
    --text-muted: #999;
    --background: #f5f5f5;
    --white: #ffffff;
    --border: #e1e5e9;

    /* Semantic Colors */
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Logo Styles */
.logo {
    color: var(--text-primary);
    font-weight: 700 !important;
    font-size: 18px;
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
    margin: 0;
    transition: color 0.3s ease;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.logo:hover {
    color: var(--primary-color);
}

.logo-dot {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    font-family: inherit;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: #6c757d;
    color: var(--white);
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: #c82333;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-dark);
}

/* Forms */
.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
}

/* Navigation */
.user-nav {
    background: transparent;
    padding: 15px 20px;
}

.nav-links {
    display: flex;
    gap: 15px;
}

.nav-link {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 500;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Active/Selected States - 섹션 배경에는 적용 안됨 */

/* Tabs */
.tab-button.active {
    background: var(--primary-color);
    color: var(--white);
    border-bottom-color: var(--primary-color);
}

.tab-button:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* Filter Tabs */
.filter-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.filter-tab:hover {
    color: var(--primary-color);
    background: rgba(155, 89, 182, 0.05);
}

/* Gradients */
.gradient-bg {
    background: var(--primary-gradient);
}

/* Accent Colors */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

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

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

/* Responsive */
@media (max-width: 768px) {
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}
