/* ============================================ */
/* AUTHENTICATION STYLES                        */
/* ============================================ */

.auth-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #f8f9fa;
}

.auth-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 40px;
    width: 100%;
    max-width: 520px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 28px;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.auth-header p {
    color: #666;
    font-size: 15px;
    line-height: 1.5;
}

/* Form Styles */
.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
    font-size: 14px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="tel"],
.auth-form textarea,
.auth-form select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.auth-form input:focus,
.auth-form textarea:focus {
    outline: none;
    border-color: #e67e22;
}

.auth-form .input-error {
    border-color: #e74c3c !important;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 4px;
    display: block;
}

.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #fdeaea;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #eafaf1;
    color: #27ae60;
    border: 1px solid #c3e6cb;
}

.alert-warning {
    background: #fef9e7;
    color: #f39c12;
    border: 1px solid #f9e79f;
}

.checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    font-weight: normal !important;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 2px;
    accent-color: #e67e22;
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
}

.btn-primary {
    background: #e67e22;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary:hover {
    background: #d35400;
}

.btn-outline {
    background: transparent;
    color: #e67e22;
    border: 2px solid #e67e22;
    border-radius: 8px;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: #e67e22;
    color: #fff;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.auth-footer a {
    color: #e67e22;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.toggle-option {
    flex: 1;
    text-align: center;
    padding: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #666;
    background: #fafafa;
    transition: all 0.2s;
}

.toggle-option.active {
    background: #e67e22;
    color: #fff;
}

.toggle-option input[type="radio"] {
    display: none;
}

/* ============================================ */
/* DASHBOARD STYLES                             */
/* ============================================ */

.dashboard {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 16px;
}

.dashboard-header h1 {
    font-size: 26px;
    color: #1a1a2e;
}

.artist-tier-display {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tier-progress {
    font-size: 13px;
    color: #666;
    background: #f0f0f0;
    padding: 6px 12px;
    border-radius: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    text-align: center;
}

.stat-card h3 {
    font-size: 28px;
    color: #e67e22;
    margin-bottom: 4px;
}

.stat-card p {
    font-size: 13px;
    color: #888;
    margin: 0;
}

.promotion-slots-info {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.recent-orders {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.data-table th {
    text-align: left;
    padding: 12px;
    background: #f8f9fa;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #eee;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-delivered { background: #eafaf1; color: #27ae60; }
.status-pending_payment { background: #fef9e7; color: #f39c12; }
.status-processing { background: #eaf2f8; color: #2980b9; }
.status-shipped { background: #f5eef8; color: #8e44ad; }
.status-cancelled { background: #fdeaea; color: #e74c3c; }

.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-bronze { background: #f5e6cc; color: #8b6914; }
.badge-silver { background: #e8e8e8; color: #666; }
.badge-gold { background: #fef3cd; color: #b8860b; }
.badge-platinum { background: #e8daef; color: #6c3483; }
.badge-verified { background: #d5f5e3; color: #1e8449; }
.badge-promoted { background: #ffeaa7; color: #d35400; }

/* ============================================ */
/* PUBLIC GALLERY STYLES                        */
/* ============================================ */

/* Hero */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 36px;
    margin-bottom: 12px;
}

.hero-content p {
    font-size: 17px;
    color: #b0b8c1;
    max-width: 500px;
    margin: 0 auto 30px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-stat strong {
    display: block;
    font-size: 28px;
    color: #e67e22;
}

.hero-stat span {
    font-size: 13px;
    color: #888;
}

.hero-featured {
    margin-top: 40px;
}

.hero-featured h3 {
    color: #e67e22;
    margin-bottom: 16px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.featured-card {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    width: 220px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.featured-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.featured-info {
    padding: 12px;
}

.featured-info h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.featured-info p {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}

.featured-price {
    color: #e67e22;
    font-weight: 700;
    font-size: 15px;
}

/* Gallery Section */
.gallery-section {
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-controls {
    margin-bottom: 20px;
}

.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    max-width: 500px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #e67e22;
}

.search-btn {
    padding: 12px 20px;
    background: #e67e22;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}

.clear-search {
    display: flex;
    align-items: center;
    color: #e74c3c;
    text-decoration: none;
    font-size: 13px;
}

.filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.category-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.category-filters a {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    color: #555;
    background: #f0f0f0;
    transition: all 0.2s;
}

.category-filters a:hover {
    background: #e0e0e0;
}

.category-filters a.active {
    background: #e67e22;
    color: #fff;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

.results-count {
    margin-bottom: 16px;
}

.results-count p {
    font-size: 14px;
    color: #888;
}

/* Artwork Grid */
.artwork-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.artwork-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    text-decoration: none;
    color: #333;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.artwork-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.artwork-card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f0f0f0;
}

.artwork-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.artwork-card:hover .artwork-card-image img {
    transform: scale(1.05);
}

.artwork-card-info {
    padding: 14px;
}

.artwork-card-info h3 {
    font-size: 15px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artwork-card-info h4 {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-artist {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-price {
    font-size: 16px;
    font-weight: 700;
    color: #e67e22;
}

.card-views {
    font-size: 11px;
    color: #999;
}

.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-badge-promoted {
    background: #ffeaa7;
    color: #d35400;
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #e74c3c;
}

.wishlist-btn:hover {
    background: #e74c3c;
    color: #fff;
}

.verified-badge {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #27ae60;
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    text-align: center;
    line-height: 16px;
    margin-left: 4px;
    vertical-align: middle;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.page-link {
    padding: 8px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    transition: all 0.2s;
}

.page-link:hover {
    background: #f0f0f0;
}

.page-link.active {
    background: #e67e22;
    color: #fff;
    border-color: #e67e22;
}

/* Artwork Detail Page */
.artwork-detail-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 13px;
    color: #888;
}

.breadcrumb a {
    color: #e67e22;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 6px;
}

.artwork-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.artwork-images-column {
    position: sticky;
    top: 20px;
}

.main-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
    aspect-ratio: 1;
}

.main-artwork-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-badge-large {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #ffeaa7;
    color: #d35400;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.thumbnail-strip {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
}

.thumbnail {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.thumbnail.active {
    border-color: #e67e22;
}

.thumbnail:hover {
    border-color: #e67e22;
}

/* Artwork Info Column */
.artwork-title {
    font-size: 26px;
    margin-bottom: 16px;
    color: #1a1a2e;
}

.artist-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
}

.artist-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.artist-name-link {
    font-weight: 600;
    color: #333;
    text-decoration: none;
    font-size: 16px;
}

.artist-name-link:hover {
    color: #e67e22;
}

.artist-location {
    font-size: 13px;
    color: #888;
    margin-top: 2px;
}

.artist-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.verify-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.badge-identity { background: #d5f5e3; color: #1e8449; }
.badge-artist { background: #e8daef; color: #6c3483; }
.badge-trusted { background: #fef3cd; color: #b8860b; }
.badge-featured { background: #ffeaa7; color: #d35400; }
.badge-platinum { background: #d6eaf8; color: #2471a3; }

.price-section {
    margin-bottom: 20px;
}

.artwork-price {
    font-size: 32px;
    font-weight: 700;
    color: #e67e22;
}

.promo-timer {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.artwork-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
}

.meta-item strong {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 2px;
}

.meta-item span {
    font-size: 14px;
    color: #333;
}

.artwork-description {
    margin-bottom: 20px;
}

.artwork-description h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.artwork-description p {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

.artwork-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-block {
    flex: 1;
    justify-content: center;
    text-align: center;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: #e67e22;
    border: 2px solid #e67e22;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: #e67e22;
    color: #fff;
}

.trust-section {
    background: #fef9e7;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #f9e79f;
}

.trust-item {
    font-size: 13px;
    color: #555;
    padding: 4px 0;
}

/* Reviews */
.reviews-section, .more-from-artist, .artist-reviews {
    margin-bottom: 40px;
}

.reviews-section h2, .more-from-artist h2, .artist-reviews h2 {
    font-size: 20px;
    margin-bottom: 16px;
}

.avg-rating {
    font-size: 16px;
    color: #f39c12;
}

.review-card {
    padding: 16px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 12px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.review-stars {
    color: #f39c12;
}

.review-date {
    font-size: 12px;
    color: #888;
}

.review-comment {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.review-artwork {
    font-size: 12px;
    color: #888;
}

.no-reviews {
    color: #999;
    font-size: 14px;
}

/* More from artist */
.artwork-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

/* Artist Profile Page */
.artist-profile-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.artist-profile-header {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.artist-profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.artist-profile-info h1 {
    font-size: 28px;
    margin-bottom: 6px;
}

.artist-location-text {
    color: #888;
    font-size: 14px;
    margin-bottom: 12px;
}

.artist-bio-text {
    margin: 14px 0;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.artist-stats-row {
    display: flex;
    gap: 24px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.artist-stat-item {
    text-align: center;
}

.artist-stat-item strong {
    display: block;
    font-size: 20px;
    color: #e67e22;
}

.artist-stat-item span {
    font-size: 12px;
    color: #888;
}

.artist-artworks-section {
    margin-bottom: 40px;
}

/* Empty states */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.empty-state h3 {
    margin-bottom: 8px;
    color: #333;
}

.empty-state p {
    color: #888;
    margin-bottom: 20px;
}

.empty-text {
    color: #999;
    text-align: center;
    padding: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .artwork-detail-layout {
        grid-template-columns: 1fr;
    }
    
    .artwork-images-column {
        position: static;
    }
    
    .hero-content h1 {
        font-size: 24px;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .artist-profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .artist-stats-row {
        justify-content: center;
    }
}