/* Common Styles - TrueWeb */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #673DE6;
    --primary-dark: #4a2ba3;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-dark: #1a1a2e;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    word-break: keep-all;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header Styles */
.site-header {
    background-color: var(--bg-primary);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    margin: 0;
    padding: 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    gap: 1rem;
    flex-wrap: nowrap;
}

.navbar-brand .logo-link {
    text-decoration: none;
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: normal;
    margin-top: 0.25rem;
    letter-spacing: 0.05em;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
}

.nav-item {
    flex-shrink: 0;
    white-space: nowrap;
}

.nav-item .nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.nav-item .nav-link:hover,
.nav-item .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(103, 61, 230, 0.1);
}

/* 코인 거래 버튼 스타일 */
.coin-trade-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 25px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.coin-trade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(103, 61, 230, 0.4);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.coin-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    animation: coinRotate 3s linear infinite;
}

.coin-icon {
    width: 100%;
    height: 100%;
    color: white;
}

@keyframes coinRotate {
    0% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(180deg) scale(1.1);
    }
    100% {
        transform: rotateY(360deg);
    }
}

.btn-text {
    font-weight: 600;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 0;
    margin: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Footer Styles */
.site-footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 0;
    margin-bottom: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* 모바일 메뉴 토글 버튼 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .navbar-menu {
        gap: 0.75rem;
    }
    
    .nav-item .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .coin-trade-btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem;
    }
    
    .btn-text {
        white-space: nowrap;
    }
}

@media (max-width: 900px) {
    .navbar-menu {
        gap: 0.5rem;
    }
    
    .nav-item .nav-link {
        padding: 0.5rem 0.6rem;
        font-size: 0.85rem;
    }
    
    .coin-trade-btn {
        padding: 0.5rem 0.9rem !important;
        font-size: 0.8rem;
    }
    
    .coin-icon-wrapper {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-wrap: nowrap;
        gap: 0.5rem;
    }
    
    .navbar-brand {
        flex-shrink: 1;
        min-width: 0;
    }
    
    .logo-text {
        font-size: 1.1rem;
        word-break: keep-all;
    }
    
    .logo-subtitle {
        font-size: 0.6rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .navbar-menu {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.4rem;
        flex: 1;
        justify-content: flex-end;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .navbar-menu::-webkit-scrollbar {
        display: none;
    }
    
    .nav-item {
        flex-shrink: 0;
    }
    
    .nav-item .nav-link {
        padding: 0.45rem 0.6rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .coin-trade-btn {
        padding: 0.45rem 0.85rem !important;
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .coin-icon-wrapper {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }
    
    .btn-text {
        white-space: nowrap;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-title,
    .footer-subtitle {
        font-size: 1.1rem;
    }
    
    .footer-text {
        font-size: 0.9rem;
        word-break: keep-all;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.75rem 0;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .logo-subtitle {
        font-size: 0.6rem;
    }
    
    .navbar-menu {
        gap: 0.4rem;
    }
    
    .nav-item .nav-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .coin-trade-btn {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.75rem;
    }
    
    .coin-icon-wrapper {
        width: 18px;
        height: 18px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
        word-break: keep-all;
    }
    
    .btn-large {
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
    }
}
