@import url('noto-sans-sc.css');
@import url('material-symbols.css');
@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
    --primary-color: #C00000;
    --secondary-color: #FFC700;
    --background-light: #F3F4F6;
    --background-dark: #111827;
    --card-light: #FFFFFF;
    --card-dark: #1F2937;
    --text-light-primary: #1F2937;
    --text-dark-primary: #F9FAFB;
    --text-light-secondary: #6B7280;
    --text-dark-secondary: #9CA3AF;
    --border-light: #E5E7EB;
    --border-dark: #374151;
}

body {
    background-color: var(--background-light);
    color: var(--text-light-primary);
    font-family: 'Noto Sans SC', sans-serif;
}

.dark body {
    background-color: var(--background-dark);
    color: var(--text-dark-primary);
}

.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.5rem;
}

.elements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.number-ball {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .number-ball {
        width: 3rem;
        height: 3rem;
    }
}

.number-ball::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 50%);
    border-radius: 50%;
}

.number-ball .num {
    font-size: 1.25rem;
    text-shadow: 0 1px 3px rgb(0 0 0 / 0.4);
    z-index: 10;
}

.number-ball .animal {
    font-size: 10px;
    font-weight: 400;
    opacity: 0.9;
    z-index: 10;
}

.ball-red {
    background: radial-gradient(circle at 30% 30%, #ef4444, #b91c1c);
    box-shadow: 0 4px 6px -1px rgba(185, 28, 28, 0.5);
}

.ball-blue {
    background: radial-gradient(circle at 30% 30%, #3b82f6, #1d4ed8);
    box-shadow: 0 4px 6px -1px rgba(29, 78, 216, 0.5);
}

.ball-green {
    background: radial-gradient(circle at 30% 30%, #22c55e, #15803d);
    box-shadow: 0 4px 6px -1px rgba(21, 128, 61, 0.5);
}

table {
    width: 100% !important;
}