/* ========== SAVED BUILDS PAGE ========== */
.saved-builds-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem 4rem;
    position: relative;
    z-index: 2;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-header .icon {
    font-size: 3rem;
}

.btn-create,
.btn-create-large {
    background: linear-gradient(135deg, #f4c542, #ff8000);
    border: none;
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(244, 197, 66, 0.3);
    text-decoration: none;
    display: inline-block;
}

.btn-create:hover,
.btn-create-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(244, 197, 66, 0.5);
}

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

/* ========== BUILDS GRID ========== */
.builds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
}

.build-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(20, 20, 20, 0.95));
    border: 2px solid rgba(244, 197, 66, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.build-card:hover {
    border-color: rgba(244, 197, 66, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
}

.build-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.build-info h3 {
    color: #f4c542;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.build-meta {
    display: flex;
    gap: 1rem;
    color: #888;
    font-size: 0.85rem;
}

.build-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon-small {
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid #2a2a2a;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-small:hover {
    border-color: #f4c542;
    background: rgba(244, 197, 66, 0.1);
}

.btn-icon-small.delete:hover {
    border-color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
}

/* ========== MINI BOARD ========== */
.mini-board {
    background: rgba(30, 30, 30, 0.6);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    position: relative;
}

.mini-hex {
    width: 45px;
    height: 45px;
    background: rgba(40, 40, 40, 0.8);
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.mini-hex.has-unit {
    border-color: rgba(244, 197, 66, 0.5);
}

.mini-hex img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

/* ========== TRAITS SUMMARY ========== */
.traits-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.mini-trait {
    background: rgba(244, 197, 66, 0.1);
    border: 2px solid rgba(244, 197, 66, 0.3);
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #f4c542;
}

.mini-trait.active {
    background: rgba(244, 197, 66, 0.2);
    border-color: #f4c542;
}

/* ========== BUILD STATS ========== */
.build-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-group {
    display: flex;
    gap: 1rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.stat-icon {
    font-size: 1.2rem;
}

.btn-load {
    background: rgba(244, 197, 66, 0.1);
    border: 2px solid #f4c542;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    color: #f4c542;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-load:hover {
    background: rgba(244, 197, 66, 0.2);
    transform: translateY(-2px);
}

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: 6rem 2rem;
    color: #666;
}

.empty-icon {
    font-size: 6rem;
    margin-bottom: 2rem;
    opacity: 0.5;
}

.empty-state h2 {
    color: #888;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .builds-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .mini-board {
        grid-template-columns: repeat(7, 1fr);
        gap: 4px;
    }

    .mini-hex {
        width: 38px;
        height: 38px;
    }
}
