:root {
    --bg-primary: #F0F0F0;
    --bg-white: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, var(--bg-primary) 0%, transparent 100%);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 0.8s ease forwards;
}

.admin-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 0.8s ease 0.2s forwards;
}

.admin-btn:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 8px 25px var(--shadow-hover);
    border-color: #333;
}

/* Main Container */
.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px;
}

/* Title */
.main-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 4rem;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.3s forwards;
    background: linear-gradient(135deg, #333 0%, #666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Cards Grid */
.cards-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 900px;
}

.cards-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Card Styles */
.card {
    width: 180px;
    height: 120px;
    background: var(--bg-white);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 40px var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    text-decoration: none;
}

.card:nth-child(1) { animation: fadeInUp 0.8s ease 0.4s forwards; }
.card:nth-child(2) { animation: fadeInUp 0.8s ease 0.5s forwards; }
.card:nth-child(3) { animation: fadeInUp 0.8s ease 0.6s forwards; }
.card:nth-child(4) { animation: fadeInUp 0.8s ease 0.7s forwards; }
.card:nth-child(5) { animation: fadeInUp 0.8s ease 0.8s forwards; }

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px var(--shadow-hover);
}

.card:active {
    transform: translateY(-4px) scale(0.98);
}

.card-emoji {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    transition: transform 0.3s;
}

.card:hover .card-emoji {
    transform: scale(1.2);
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-border {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: height 0.3s;
}

.card:hover .card-border {
    height: 8px;
}

/* Inactive Card */
.card.inactive {
    cursor: not-allowed;
    opacity: 0.6;
}

.card.inactive:hover {
    transform: none;
    box-shadow: 0 10px 40px var(--shadow);
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }
    
    .main-container {
        padding: 80px 15px 40px;
    }
    
    .main-title {
        margin-bottom: 3rem;
    }
    
    .cards-row {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .card {
        width: 100%;
        max-width: 320px;
        height: 160px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .card {
        height: 140px;
    }
    
    .card-emoji {
        font-size: 3rem;
    }
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1s forwards;
}

/* Card Description */
.card-description {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 0.3rem;
    padding: 0 0.5rem;
    line-height: 1.2;
}

.card:hover .card-description {
    color: var(--text-primary);
}
