@font-face {
    font-family: 'AtoZ';
    src: url('media/Fonts/AtoZ/AtoZ5.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-color: #ffffff;
    --card-bg: #111111;
    --text-primary: #ffffff;
    --text-secondary: #999999;
    --accent-color: #ffffff;
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'AtoZ', sans-serif;
    background-color: var(--bg-color);
    color: #111111;
    line-height: 1.6;
    padding-bottom: 120px; /* Space for fixed footer (adjusted for larger size) */
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 50px;
    width: 100%;
}

.header-logo {
    max-width: 180px;
    width: 100%;
    margin-top: 20px;
}

/* Main Card Styles */
.main-card {
    background-color: var(--card-bg);
    width: 100%;
    border-radius: 32px;
    padding: 30px 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    min-height: 400px;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 5px;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 10px 15px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border-radius: 12px;
    flex: 1;
    font-family: 'AtoZ', sans-serif;
}

.tab-btn.active {
    background: var(--accent-color);
    color: #000;
}

/* Content List Items */
.content-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4개씩 배치 */
    gap: 12px;
}

.item {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; /* 둥근 모서리 사각형 */
    aspect-ratio: 1 / 1; /* 정사각형 버튼 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    font-family: 'AtoZ', sans-serif;
}

.item:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}

.item:active {
    transform: scale(0.95);
}

/* Footer Styles */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 30px 0; /* Height doubled from 15px */
    display: flex;
    justify-content: center;
    z-index: 1000;
}

.social-links {
    display: flex;
    gap: 30px;
}

.social-icon {
    color: #111111;
    transition: transform 0.2s ease, opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-icon svg {
    width: 44px; /* Size doubled from 22px */
    height: 44px;
    display: block;
}

.social-icon:hover {
    transform: scale(1.1);
    opacity: 0.7;
}

/* Filtering animation Classes */
.hide {
    display: none !important;
}

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

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

/* Responsive adjustments */
@media (max-width: 400px) {
    .container {
        padding: 30px 15px;
    }
    .tab-btn {
        font-size: 0.75rem;
        padding: 8px 10px;
    }
}
