/* assets/styles/dashboard.css */

/* --- Dashboard Container --- */
.dashboard-container {
    padding: 80px 20px 40px;
    /* Mobile: Reduced padding */
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80vh;
    color: var(--color-text-main);

    /* Strong Glassmorphism */
    /* Strong Glassmorphism - Enhanced */
    /* Strong Glassmorphism - Enhanced */
    background: var(--glass-container-bg);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.dashboard-header {
    display: flex;
    flex-direction: column;
    /* Stack by default (Mobile) */
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 20px;
}

@media (min-width: 768px) {
    .dashboard-container {
        padding: 100px 40px 60px;
        /* Desktop Padding */
    }

    .dashboard-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

.dashboard-header h1 {
    font-family: var(--font-display);
    font-size: 24px;
    /* Mobile Size */
    letter-spacing: 0.1em;
    margin: 0;
}

@media (min-width: 768px) {
    .dashboard-header h1 {
        font-size: 32px;
    }
}

.user-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    width: 100%;
    /* Full width on mobile */
    justify-content: space-between;
}

@media (min-width: 768px) {
    .user-meta {
        width: auto;
        justify-content: flex-start;
    }
}

.user-id {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-text-main);
    letter-spacing: 0.1em;
    opacity: 0.8;
}

/* --- Buttons & Actions --- */
.header-actions {
    display: flex;
    flex-direction: column;
    /* Stack buttons on mobile */
    gap: 10px;
    width: 100%;
}

@media (min-width: 768px) {
    .header-actions {
        flex-direction: row;
        width: auto;
        gap: 12px;
    }
}

/* Unified Button Style */
.dashboard-action-btn {
    background: transparent !important;
    border: 1px solid var(--color-text-main);
    color: var(--color-text-main);
    padding: 8px 20px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border-radius: 2px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.dashboard-action-btn:hover {
    background: var(--color-text-main);
    color: var(--bg-color);
    /* Invert colors based on theme */
    box-shadow: 0 0 15px rgba(125, 125, 125, 0.4);
}

/* Specific variants can override colors if absolutely needed, but keeping unified for now */
.dashboard-action-btn.danger {
    border-color: #ff3333;
    color: #ff3333;
}

.dashboard-action-btn.danger:hover {
    background: #ff3333;
    color: white;
}


/* --- Content Layout --- */
.dashboard-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 1024px) {
    .dashboard-content {
        grid-template-columns: 2fr 1fr;
    }
}

.section-title {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--color-text-main);
    margin-bottom: 20px;
    border-left: 2px solid var(--color-text-main);
    padding-left: 10px;
}

/* --- Section A: Premium Grid --- */
.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.premium-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--color-text-main);
}

.premium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--color-text-main);
}

.premium-card .card-img-container {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid var(--glass-border);
}

.premium-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    /* Maximum clean look */
    transition: filter 0.3s;
}

.premium-card:hover img {
    filter: grayscale(0%);
}

.premium-card h4 {
    font-family: var(--font-main);
    font-size: 16px;
    margin: 0 0 5px 0;
    color: var(--color-text-main);
}

.order-date {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--color-text-main);
    opacity: 0.6;
    margin-bottom: 10px;
}

.download-link {
    display: inline-block;
    color: var(--color-text-main);
    font-family: var(--font-mono);
    font-size: 11px;
    text-decoration: none;
    border-bottom: 1px solid var(--color-text-main);
    padding-bottom: 2px;
}

.download-link:hover {
    opacity: 0.7;
}

/* Ensure glass-card panels have proper padding if not inherited */
/* --- Auth Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.modal-glass-panel {
    background: var(--glass-container-bg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    position: relative;
    border-radius: 8px;
}

.auth-title {
    text-align: center;
    font-family: var(--font-display);
    letter-spacing: 0.15em;
    margin-bottom: 30px;
    font-size: 20px;
    color: var(--color-text-main);
}

.input-group {
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    background: rgba(125, 125, 125, 0.1);
    border: 1px solid var(--glass-border);
    padding: 12px 15px;
    color: var(--color-text-main);
    font-family: var(--font-mono);
    font-size: 12px;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: var(--color-neon-lime);
}

.auth-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--color-text-main);
    color: var(--color-text-main);
    font-family: var(--font-main);
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.05em;
}

.auth-btn:hover {
    background: var(--fluid-color);
    /* Unified Orange */
    color: #ffffff;
    border-color: var(--fluid-color);
    box-shadow: 0 0 20px rgba(255, 85, 0, 0.4);
}


.auth-switch {
    margin-top: 20px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--color-text-main);
    opacity: 0.7;
}

.auth-switch a {
    color: var(--color-text-main);
    text-decoration: underline;
    margin-left: 5px;
}

/* --- My Collection Grid --- */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.collection-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.collection-card:hover {
    transform: translateY(-5px);
    border-color: var(--fluid-color);
    background: rgba(255, 255, 255, 0.05);
}

.card-thumb {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #000;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.collection-card:hover .card-thumb img {
    transform: scale(1.05);
}

.free-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--fluid-color);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 2px;
    letter-spacing: 0.05em;
}


.card-info {
    padding: 15px;
    flex-grow: 1;
}

.card-info h4 {
    font-family: var(--font-display);
    font-size: 14px;
    margin-bottom: 5px;
    color: var(--color-text-main);
    letter-spacing: 0.05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    font-size: 11px;
    color: var(--color-text-muted);
    opacity: 0.6;
}

.card-actions {
    padding: 0 15px 15px;
}

/* --- Orange Pulse Button --- */
.download-btn.neon-pulse {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    background: transparent;
    border: 1px solid var(--fluid-color);
    color: var(--fluid-color);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.1em;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(255, 85, 0, 0.3);
    box-shadow: inset 0 0 0 0 rgba(255, 85, 0, 0.1);
}

.download-btn.neon-pulse:hover {
    background: var(--fluid-color);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 85, 0, 0.4);
    text-shadow: none;
}

@keyframes orange-pulse-anim {
    0% {
        box-shadow: 0 0 5px rgba(255, 85, 0, 0.2);
    }

    50% {
        box-shadow: 0 0 15px rgba(255, 85, 0, 0.5);
    }

    100% {
        box-shadow: 0 0 5px rgba(255, 85, 0, 0.2);
    }
}

.download-btn.neon-pulse {
    animation: orange-pulse-anim 2s infinite ease-in-out;
}


@media (max-width: 768px) {
    .collection-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}