/**
 * Zin Lab Plugin - Consolidated Global Styles
 * File: assets/css/zinlab.css
 */

/* ============================================
   FONTS & TYPOGRAPHY
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&display=swap');

/* Only apply background to Zin Lab plugin pages */
body.zinlab-page {
    background: linear-gradient(135deg, #fffbed 0%, #f5f5f0 100%);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
}

/* Scope heading styles to Zin Lab containers only */
.zinlab-container h1, .zinlab-container h2, .zinlab-container h3, .zinlab-container h4, .zinlab-container h5, .zinlab-container h6,
.app-container h1, .app-container h2, .app-container h3, .app-container h4, .app-container h5, .app-container h6,
.blend-container h1, .blend-container h2, .blend-container h3, .blend-container h4, .blend-container h5, .blend-container h6,
.leaderboard-container h1, .leaderboard-container h2, .leaderboard-container h3, .leaderboard-container h4, .leaderboard-container h5, .leaderboard-container h6,
.blend-card h1, .blend-card h2, .blend-card h3, .blend-card h4, .blend-card h5, .blend-card h6,
.login-card h1, .login-card h2, .login-card h3, .login-card h4, .login-card h5, .login-card h6,
.header-section h1, .header-section h2, .header-section h3, .header-section h4, .header-section h5, .header-section h6,
.header-bar h1, .header-bar h2, .header-bar h3, .header-bar h4, .header-bar h5, .header-bar h6,
.app-header h1, .app-header h2, .app-header h3, .app-header h4, .app-header h5, .app-header h6,
.sliders-section h1, .sliders-section h2, .sliders-section h3, .sliders-section h4, .sliders-section h5, .sliders-section h6 {
    font-family: 'Oswald', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    font-weight: 700 !important;
    margin: 0 0 35px !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
}

.zinlab-container h1, .app-container h1, .blend-container h1, .leaderboard-container h1 { font-size: 2.5rem !important; }
.zinlab-container h2, .app-container h2, .blend-container h2, .leaderboard-container h2 { font-size: 2rem !important; }
.zinlab-container h3, .app-container h3, .blend-container h3, .leaderboard-container h3 { font-size: 1.75rem !important; }
.zinlab-container h4, .app-container h4, .blend-container h4, .leaderboard-container h4 { font-size: 1.5rem !important; }
.zinlab-container h5, .app-container h5, .blend-container h5, .leaderboard-container h5 { font-size: 1.25rem !important; }
.zinlab-container h6, .app-container h6, .blend-container h6, .leaderboard-container h6 { font-size: 1rem !important; }

/* ============================================
   LAYOUT & CONTAINERS
   ============================================ */

.zinlab-container,
.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.blend-container {
    max-width: 900px;
    margin: 0 auto;
}

.leaderboard-container {
    max-width: 1200px;
    margin: 0 auto;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: 30px;
}

/* ============================================
   HEADER COMPONENTS
   ============================================ */

.header-bar,
.app-header {
    background: linear-gradient(135deg, #78264C 0%, #5a1d38 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.app-header {
    box-shadow: 0 10px 30px rgba(120, 38, 76, 0.3);
}

.header-section {
    background: linear-gradient(135deg, #78264C 0%, #5a1d38 100%);
    color: white;
    padding: 50px 30px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(120, 38, 76, 0.3);
    position: relative;
    overflow: hidden;
}

.header-bar h1,
.app-header h1 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
}

.app-header h1 {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.header-section h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.header-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
}

.zinlab-logo {
    height: 120px;
    width: auto;
    margin: 0 auto 20px;
    display: block;
}

.header-bar .zinlab-logo {
    height: 180px;
}

.header-section .zinlab-logo {
    height: 180px;
}

/* ============================================
   USER & SESSION INFO
   ============================================ */

.session-info {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.user-badge-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
}

.user-badge i {
    font-size: 1.1rem;
}

.blend-count-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

.blend-count-badge .count {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 5px;
}

/* ============================================
   CARDS
   ============================================ */

.blend-card,
.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    overflow: hidden;
}

.blend-card {
    margin-bottom: 30px;
}

.login-card {
    padding: 50px;
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.card-header-custom {
    background: linear-gradient(135deg, #78264C 0%, #5a1d38 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

.blend-card .card-header-custom {
    padding: 25px;
}

.card-header-custom input {
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255,255,255,0.5);
    color: white;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    width: 100%;
    margin-bottom: 10px;
}

.card-header-custom input:focus {
    outline: none;
    border-bottom-color: white;
}

.card-body-custom {
    padding: 40px;
}

.blend-card .card-body-custom {
    padding: 25px;
}

/* ============================================
   BLEND ELEMENTS
   ============================================ */

.blend-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.blend-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.creator-info,
.blend-creator {
    font-size: 1.1rem;
    opacity: 0.9;
}

.blend-creator {
    font-size: 1rem;
    color: #666;
    opacity: 1;
}

.blend-gradient {
    height: 120px;
    margin: -20px 30px 30px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.card-body-custom .blend-gradient {
    height: 100px;
    margin: -15px 20px 20px 20px;
    border-radius: 10px;
}

.leaderboard-item .blend-gradient {
    height: 60px;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.blend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.blend-percentages {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.blend-formula {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

/* ============================================
   VARIETAL COMPONENTS
   ============================================ */

.varietal-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    border-left: 5px solid;
    text-align: center;
}

.varietal-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid;
}

.varietal-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: #f8f9fa;
    border-radius: 20px;
    border-left: 4px solid;
}

.varietal-name {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 10px;
}

.varietal-pill .varietal-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
}

.varietal-name-small {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 5px;
}

.varietal-percentage {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
}

.varietal-item .varietal-percentage {
    font-size: 1.5rem;
}

.varietal-pill .varietal-percentage {
    font-size: 1.1rem;
    color: #78264C;
}

/* ============================================
   STATS & COUNTERS
   ============================================ */

.stats-section,
.twin-count-box {
    background: linear-gradient(135deg, #78264C 0%, #5a1d38 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin: 30px 0;
}

.twin-count-box {
    padding: 20px;
    margin: 20px 0;
}

.twin-count-box h4 {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.stat-item {
    display: inline-block;
    margin: 0 30px;
    text-align: center;
}

.stats-bar .stat-item {
    margin: 0;
}

.stat-value,
.twin-count-box .count {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
}

.stat-label,
.twin-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.twin-label {
    font-size: 0.85rem;
    color: #666;
    opacity: 1;
}

.blend-stats {
    text-align: right;
}

.twin-count {
    font-size: 2.5rem;
    font-weight: 700;
    color: #78264C;
    line-height: 1;
}

.blend-date {
    font-size: 0.85rem;
    color: #999;
    margin-top: 10px;
}

/* ============================================
   SLIDERS & INPUTS
   ============================================ */

.sliders-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.slider-group,
.flavor-slider-group {
    margin-bottom: 25px;
}

.flavor-slider-group {
    margin-bottom: 20px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.slider-header .varietal-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0;
    text-transform: none;
}

.slider-header .ml-display {
    background: #f8f9fa;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    color: #78264C;
}

.slider-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.flavor-slider-group label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
}

input[type="range"],
.flavor-range {
    flex: 1;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #d3d3d3;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb,
.flavor-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #78264C;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.flavor-range::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
}

input[type="range"]::-moz-range-thumb,
.flavor-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #78264C;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.flavor-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
}

input[type="range"]::-webkit-slider-runnable-track,
.flavor-range::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 5px;
    background: #d3d3d3;
}

input[type="range"]::-moz-range-track,
.flavor-range::-moz-range-track {
    height: 8px;
    border-radius: 5px;
    background: #d3d3d3;
}

.percentage-input {
    width: 80px;
    padding: 8px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
}

/* ============================================
   TOTALS & DISPLAYS
   ============================================ */

.total-display {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-top: 20px;
}

.total-display .total-value {
    font-size: 3rem;
    font-weight: 700;
    color: #78264C;
}

.total-display.error .total-value {
    color: #dc3545;
}

.total-display .total-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   TABS & FILTERS
   ============================================ */

.blend-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.tab-btn.active {
    background: #78264C;
    color: white;
    border-color: #78264C;
}

.tab-btn.finalized {
    background: #46b450;
    color: white;
    border-color: #46b450;
}

.tab-btn.finalized::after {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    background: #2e7d32;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.add-blend-btn {
    background: #f8f9fa;
    border: 2px dashed #78264C;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    color: #78264C;
    transition: all 0.3s;
}

.add-blend-btn:hover {
    background: #78264C;
    color: white;
}

.filter-section {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active {
    background: #78264C;
    color: white;
    border-color: #78264C;
}

.filter-btn:hover {
    border-color: #78264C;
}

/* ============================================
   BUTTONS
   ============================================ */

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 30px 0;
}

.blend-card .action-buttons {
    gap: 10px;
    margin-top: 20px;
}

.btn,
.btn-custom {
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    display: inline-block;
    margin-right: 5px;
}

.btn-custom {
    display: inline-flex;
}

.btn-primary-custom,
.btn-primary {
    background: #78264C;
    color: white;
}

.btn-primary-custom:hover,
.btn-primary:hover {
    background: #5a1d38;
    transform: translateY(-2px);
    color: white;
}

.btn-secondary-custom,
.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-secondary-custom:hover {
    background: #e0e0e0;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-commit {
    flex: 1;
    background: #78264C;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-commit:hover {
    background: #5a1d38;
    transform: translateY(-2px);
}

.btn-finalize {
    background: #46b450;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 1.1rem;
    width: 100%;
    margin-top: 10px;
}

.btn-finalize:hover {
    background: #2e7d32;
}

.view-blend-btn {
    background: #78264C;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
}

.view-blend-btn:hover {
    background: #5a1d38;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(120, 38, 76, 0.3);
}

.back-btn {
    background: white;
    color: #78264C;
    border: 2px solid #78264C;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.back-btn:hover {
    background: #78264C;
    color: white;
}

/* ============================================
   WINEMAKER HINTS
   ============================================ */

.winemaker-hint-toggle {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.winemaker-hint-toggle:hover {
    background: #e9ecef;
    border-color: #78264C;
}

.winemaker-hint-toggle h3 {
    font-size: 1rem;
    margin: 0;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
}

.winemaker-hint-toggle .toggle-icon {
    font-size: 1.2rem;
    color: #78264C;
    transition: transform 0.3s;
}

.winemaker-hint-toggle.open .toggle-icon {
    transform: rotate(180deg);
}

.winemaker-hint-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: white;
    border: 2px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 10px 10px;
    margin-top: -10px;
    margin-bottom: 25px;
}

.winemaker-hint-content.open {
    max-height: 500px;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

.winemaker-hint-content p {
    margin: 0 0 15px 0;
    color: #495057;
}

.suggestion-blend-formula {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.suggestion-varietal {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border-radius: 20px;
    border-left: 4px solid;
    font-size: 0.9rem;
}

.suggestion-varietal .varietal-name {
    font-weight: 600;
    color: #333;
}

.suggestion-varietal .varietal-pct {
    font-weight: 700;
    color: #78264C;
}

.winemaker-hint-content .btn-apply {
    margin-top: 15px;
    background: #78264C;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.winemaker-hint-content .btn-apply:hover {
    background: #5a1d38;
    transform: translateY(-2px);
}

/* ============================================
   LEADERBOARD
   ============================================ */

.leaderboard-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.leaderboard-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(120, 38, 76, 0.15);
}

.rank-badge {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 70px;
    height: 70px;
    background: #78264C;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 5;
}

.rank-badge.rank-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    color: #333;
    font-size: 2.5rem;
}

.rank-badge.rank-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #999 100%);
    color: #333;
}

.rank-badge.rank-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #b86f28 100%);
    color: white;
}

.blend-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    margin-left: 60px;
}

.blend-title {
    flex: 1;
}

.crown-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    opacity: 0.2;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

/* ============================================
   LOGIN SCREEN
   ============================================ */

.login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card h1 {
    color: #78264C;
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.login-card .subtitle {
    color: #666;
    margin-bottom: 30px;
}

/* ============================================
   WINE FORMS & TABLES
   ============================================ */

.wine-form-container {
    background: #fff;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.flavor-profile-section {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
}

.flavor-profile-section h3 {
    margin-top: 0;
    color: #78264C;
}

.radar-preview {
    max-width: 400px;
    margin: 20px auto;
}

.wine-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin-top: 20px;
}

.wine-table th,
.wine-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.wine-table th {
    background: #78264C;
    color: white;
    font-weight: 600;
}

.wine-table tr:hover {
    background: #f5f5f5;
}

.color-preview {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border: 1px solid #ccc;
    vertical-align: middle;
}

/* ============================================
   FOOTER
   ============================================ */

.footer-nav {
    text-align: center;
    padding: 30px 20px 20px 20px;
    margin-top: 50px;
    border-top: 2px solid #e0e0e0;
    color: #666;
    font-size: 0.9rem;
}

.leaderboard-container .footer-nav,
.app-container .footer-nav {
    padding: 20px 20px 20px 20px;
    margin-top: 20px;
}

.footer-nav a {
    color: #78264C;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.footer-nav a:hover {
    color: #5a1d38;
    text-decoration: underline;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.hidden {
    display: none;
}

.no-print {
    /* Visible on screen, hidden in print */
}

/* Text transform overrides */
.blend-title,
.creator-info {
    text-transform: none;
}

/* Sticky positioning */
.blend-card {
    position: sticky;
    top: 20px;
}

/* ============================================
   PRINT STYLES
   ============================================ */

.print-footer {
    display: none;
}

.zinlab-logo-print {
    display: none;
}

@media print {
    body {
        background: white;
    }
    
    .action-buttons,
    .no-print {
        display: none !important;
    }
    
    .blend-card {
        box-shadow: none;
        border: 2px solid #78264C;
        page-break-inside: avoid;
        position: static;
    }
    
    .print-footer {
        display: block !important;
        text-align: center;
        margin-top: 30px;
        padding-top: 20px;
        border-top: 2px solid #e0e0e0;
    }
    
    /* Logo switching */
    .zinlab-logo-screen {
        display: none !important;
    }
    
    .zinlab-logo-print {
        display: block !important;
        height: 80px !important;
        margin-bottom: 10px !important;
    }
    
    /* Spacing adjustments */
    .header-bar {
        padding: 20px !important;
        margin-bottom: 15px !important;
    }
    
    .card-header-custom {
        padding: 20px !important;
    }
    
    .card-body-custom {
        padding: 20px !important;
    }
    
    .blend-gradient {
        height: 60px !important;
        margin: -10px 15px 15px 15px !important;
    }
    
    .card-body-custom h3 {
        margin-bottom: 15px !important;
        margin-top: 10px !important;
    }
    
    .blend-grid {
        margin-bottom: 15px !important;
        gap: 10px !important;
    }
    
    .stats-section {
        margin: 15px 0 !important;
        padding: 15px !important;
    }
    
    #flavorChart {
        max-width: 400px !important;
        height: 400px !important;
    }
    
    .card-body-custom > div {
        margin: 15px 0 !important;
    }
    
    .footer-nav {
        page-break-before: avoid;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    h4 {
        font-size: 1.25rem;
    }
    
    /* Headers */
    .zinlab-logo {
        height: 80px;
    }
    
    .app-header h1 {
        font-size: 1.2rem;
    }
    
    .header-section h1 {
        font-size: 2rem;
    }
    
    /* User badges */
    .user-badge-container {
        gap: 15px;
    }
    
    .user-badge, 
    .blend-count-badge {
        font-size: 0.85rem;
        padding: 8px 15px;
    }
    
    /* Stats */
    .stats-bar {
        gap: 20px;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    /* Leaderboard */
    .blend-header {
        flex-direction: column;
        margin-left: 0;
        margin-top: 50px;
    }
    
    .blend-stats {
        text-align: left;
        margin-top: 10px;
    }
    
    .blend-formula {
        gap: 10px;
    }
    
    .filter-section {
        flex-direction: column;
        align-items: flex-start;
    }
}