@import "../theme.css";

body {
    padding: 100px 24px 60px;
    background: var(--bg);
}

#dashboard-container {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Sidebar Nav */
#navblob {
    position: fixed;
    top: 24px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: var(--panel);
    border: var(--border);
    border-radius: 999px;
    z-index: 1000;
}

#navblob img {
    display: block;
    width: 36px;
    height: 36px;
    padding: 6px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    filter: brightness(0) invert(var(--brightness));
    transition: var(--transition);
    cursor: pointer;
}

#navblob a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

#navblob a:first-child img {
    width: 36px;
    height: 36px;
    padding: 0;
    background: none;
    border: none;
    filter: none;
    object-fit: contain;
}

#navblob a:first-child:hover img {
    background: none;
    border: none;
    transform: scale(1.05) rotate(5deg);
}

#navblob a:hover img,
#navblob > img:hover {
    background: var(--accent-muted);
    border-color: var(--accent);
    transform: scale(1.1);
}

@media (max-width: 720px) {
    #navblob a:first-child img {
        width: 32px;
        height: 32px;
    }
}

/* Layout Columns */
aside {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

section#rightBar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Card Improvements */
.card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.hero-card {
    background: linear-gradient(135deg, var(--bg-2), var(--panel));
    border-color: var(--accent);
}

.card h2 {
    font-size: 1.5rem;
    font-weight: 800;
}

/* Shop Grid */
#shop {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 16px;
    background: var(--bg-2);
    border: var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    aspect-ratio: 1/1;
}

.item:hover {
    border-color: var(--accent);
    background: var(--panel-2);
    transform: translateY(-2px);
}

.item h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.item p {
    font-weight: 800;
    color: var(--accent);
    font-size: 0.9rem;
}

/* Spin Wheel Styling */
#spin-wheel {
    background: var(--bg-2);
    padding: 24px;
    border-radius: var(--radius);
    border: var(--border);
}

/* Settings */
#settings-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    padding: 12px 24px;
    border-radius: 999px;
    background: var(--accent);
    color: #000;
    font-weight: 800;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
}

#settings-btn:hover {
    transform: scale(1.05);
}

#settings-dialog {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--panel);
    border: var(--border);
    padding: 32px;
    border-radius: var(--radius);
    z-index: 2000;
    width: min(400px, 90%);
    box-shadow: 0 0 0 100vw rgba(0,0,0,0.5);
}

#settings-dialog h3 { margin-bottom: 20px; }
#settings-dialog button { margin-top: 10px; width: 100%; }

@media (max-width: 1024px) {
    #dashboard-container {
        grid-template-columns: 1fr;
    }
    aside {
        display: none;
    }
    #shop {
        grid-template-columns: repeat(2, 1fr);
    }
}
