/**
 * VerfLab My Account Dashboard Stylesheet
 * Replaces inline styles in class-dashboard-renderers.php with clean, responsive, and reusable CSS classes.
 */

/* ==========================================================================
   Typography & Tab Container
   ========================================================================== */
.myaccount-custom-tab-content {
    width: 100%;
}

.vf-dashboard-title {
    font-size: 24px;
    font-weight: 800;
    color: #111111;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.vf-dashboard-subheading {
    font-size: 14px;
    color: #686862;
    margin-bottom: 28px;
    line-height: 1.5;
}

.vf-dashboard-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vf-dashboard-section-title-lg {
    font-size: 19px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vf-dashboard-section-block {
    margin-bottom: 40px;
}

/* ==========================================================================
   Grids & Layout Containers
   ========================================================================== */
.vf-dashboard-grid-chat {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.vf-dashboard-grid-advice {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.vf-dashboard-grid-pdf {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.vf-dashboard-grid-colors {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
}

.vf-dashboard-grid-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.vf-dashboard-grid-inspiration,
.vf-dashboard-grid-projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

/* ==========================================================================
   Dashboard Cards & Interactive Elements
   ========================================================================== */
.vf-dashboard-card {
    background-color: #ffffff;
    border: 1px solid #e2e0d8;
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
}

.vf-dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-color: #d1ceb8;
}

.vf-dashboard-card-color {
    padding: 16px;
    align-items: center;
    text-align: center;
}

.vf-dashboard-card-product,
.vf-dashboard-card-article {
    padding: 16px;
}

/* Badges & Swatches */
.vf-dashboard-badge {
    font-size: 11px;
    font-weight: 700;
    color: #0E3D46;
    background-color: #faf7f2;
    border: 1px solid #e2e0d8;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 8px;
}

.vf-dashboard-badge-pdf {
    font-size: 10px;
    font-weight: 700;
    background-color: #FAFAFA;
    border: 1px solid #e2e0d8;
    color: #0E3D46;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 8px;
}

.vf-swatch-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.vf-card-img-wrapper {
    height: 130px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
}

.vf-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vf-stock-out-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0,0,0,0.75);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
}

.vf-pdf-icon-box {
    font-size: 24px;
    margin-bottom: 12px;
    color: #0E3D46;
}

/* Card Typography */
.vf-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #111111;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.vf-card-title a {
    color: inherit;
    text-decoration: none;
}

.vf-card-title a:hover {
    color: #0E3D46;
}

.vf-card-meta {
    font-size: 12px;
    color: #686862;
    margin: 0 0 16px 0;
}

.vf-card-price {
    font-size: 14px;
    font-weight: 800;
    color: #0E3D46;
    margin-bottom: 14px;
}

/* ==========================================================================
   Buttons & Actions
   ========================================================================== */
.vf-btn-dashboard-dark {
    display: block;
    text-align: center;
    background-color: #111111;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    padding: 8px 14px;
    border-radius: 8px;
    margin-top: auto;
    transition: background-color 0.2s ease;
}

.vf-btn-dashboard-dark:hover {
    background-color: #0E3D46;
    color: #ffffff;
}

.vf-btn-dashboard-secondary {
    display: block;
    text-align: center;
    background-color: #313A29;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    padding: 8px 14px;
    border-radius: 8px;
    margin-top: auto;
    transition: background-color 0.2s ease;
}

.vf-btn-dashboard-secondary:hover {
    background-color: #1f251a;
    color: #ffffff;
}

.vf-btn-dashboard-teal {
    display: block;
    text-align: center;
    background-color: #0E3D46;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    padding: 8px 14px;
    border-radius: 8px;
    margin-top: auto;
    transition: background-color 0.2s ease;
}

.vf-btn-dashboard-teal:hover {
    background-color: #08262c;
    color: #ffffff;
}

.vf-btn-pdf-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: #111111;
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    font-size: 12px;
    transition: background-color 0.2s ease;
}

.vf-btn-pdf-download:hover {
    background-color: #0E3D46;
    color: #ffffff;
}

.vf-btn-remove-fav {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: #ffffff;
    border: 1px solid #e2e0d8;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    color: #a69e95;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.vf-btn-remove-fav:hover {
    background-color: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}

.vf-btn-remove-fav-plain {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #a69e95;
    font-size: 14px;
    transition: color 0.2s ease;
}

.vf-btn-remove-fav-plain:hover {
    color: #dc2626;
}

/* ==========================================================================
   Empty States & Settings Block
   ========================================================================== */
.vf-dashboard-empty-state {
    background-color: #faf7f2;
    border: 1px solid #e7e3dc;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    font-size: 13px;
    color: #686862;
}

.vf-dashboard-empty-state-lg {
    grid-column: 1 / -1;
    background-color: #faf7f2;
    border: 1px solid #e7e3dc;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

.vf-settings-box {
    background-color: #ffffff;
    border: 1px solid #e2e0d8;
    border-radius: 20px;
    padding: 24px;
}

.vf-btn-clear-history {
    background-color: #faf7f2;
    border: 1px solid #e2e0d8;
    color: #c62828;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.vf-btn-clear-history:hover {
    background-color: #fee2e2;
    border-color: #fca5a5;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 768px) {
    .vf-dashboard-title {
        font-size: 20px;
    }
    
    .vf-dashboard-grid-chat,
    .vf-dashboard-grid-advice,
    .vf-dashboard-grid-pdf,
    .vf-dashboard-grid-colors,
    .vf-dashboard-grid-products,
    .vf-dashboard-grid-inspiration,
    .vf-dashboard-grid-projects {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Product Card Favorite Button & Guest Auth Modal
   ========================================================================== */
.fav-heart-btn.btn-toggle-favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.fav-heart-btn.btn-toggle-favorite:hover {
    transform: scale(1.08);
    background: #ffffff;
}

.verflab-auth-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 17, 17, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.verflab-auth-modal-box {
    background: #ffffff;
    border: 1px solid #E2E0D8;
    border-radius: 24px;
    max-width: 440px;
    width: 100%;
    padding: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    font-family: 'GT America', sans-serif;
    text-align: center;
}

.verflab-auth-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #686862;
    line-height: 1;
}

.verflab-auth-modal-icon {
    width: 56px;
    height: 56px;
    background-color: #0E3D46;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 16px auto;
    box-shadow: 0 8px 24px rgba(14, 61, 70, 0.2);
}

.verflab-auth-modal-title {
    font-size: 22px;
    font-weight: 800;
    color: #111111;
    margin: 0 0 10px 0;
    letter-spacing: -0.01em;
}

.verflab-auth-modal-desc {
    font-size: 14px;
    color: #686862;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.verflab-auth-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-modal-login {
    background-color: #111111;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
}

.btn-modal-login:hover {
    background-color: #0E3D46;
    color: #ffffff;
}

.btn-modal-guest {
    background-color: #faf7f2;
    border: 1px solid #e2e0d8;
    color: #686862;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-modal-guest:hover {
    background-color: #eee9e0;
}

/* ==========================================================================
   Helper Utilities & Tab Specifics
   ========================================================================== */
.pdf-card-body {
    flex: 1;
}

.vf-empty-state-title {
    margin: 0 0 8px 0;
    color: #111111;
    font-size: 16px;
    font-weight: 700;
}

.vf-empty-state-text {
    font-size: 13px;
    color: #686862;
    margin-bottom: 16px;
}

.vf-empty-state-text-sm {
    margin: 0 0 12px 0;
    color: #686862;
    font-size: 13px;
}

.vf-color-title {
    font-size: 14px;
    color: #111111;
    display: block;
    margin-bottom: 2px;
    font-weight: 700;
}

.vf-color-brand {
    font-size: 11px;
    color: #686862;
    margin-bottom: 12px;
    display: block;
}

.vf-btn-dashboard-sm {
    display: inline-block;
    font-size: 11px;
    padding: 6px 14px;
    margin-top: auto;
}

.vf-settings-desc {
    font-size: 13px;
    color: #686862;
    margin-bottom: 20px;
}

.vf-settings-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
