/* BAROLI - Luxury Minimalist Art E-Shop Styles */

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #000;
    color: #eee;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #eee;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #fff;
}

/* ==================== CONTAINER ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ==================== HEADER ==================== */
header {
    border-bottom: 1px solid #333;
    padding: 20px 0;
    position: sticky;
    top: 0;
    background-color: #000;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 4px;
    margin: 0;
}

.logo a {
    color: #fff;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-menu a {
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ccc;
}

.nav-menu a:hover {
    color: #fff;
}

/* ==================== MAIN CONTENT ==================== */
main {
    flex: 1;
    padding: 40px 0;
}

/* ==================== FLASH MESSAGES ==================== */
.flash-messages {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 20px;
}

.flash {
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 4px;
    border-left: 4px solid;
}

.flash-success {
    background-color: #1a3a1a;
    border-color: #4caf50;
    color: #a5d6a7;
}

.flash-error {
    background-color: #3a1a1a;
    border-color: #f44336;
    color: #ef9a9a;
}

.flash-info {
    background-color: #1a1a3a;
    border-color: #2196f3;
    color: #90caf9;
}

/* ==================== HERO SECTION ==================== */
.hero {
    text-align: center;
    padding: 100px 20px;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: 72px;
    font-weight: 300;
    letter-spacing: 8px;
    margin-bottom: 20px;
    color: #fff;
}

.hero-tagline {
    font-size: 18px;
    color: #aaa;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid #fff;
    background-color: transparent;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background-color: #fff;
    color: #000;
}

.btn-primary {
    border-color: #fff;
}

.btn-secondary {
    border-color: #666;
    color: #ccc;
}

.btn-secondary:hover {
    background-color: #666;
    color: #fff;
}

.btn-small {
    padding: 6px 12px;
    font-size: 11px;
    margin-right: 5px;
}

.btn-danger {
    border-color: #f44336;
    color: #f44336;
}

.btn-danger:hover {
    background-color: #f44336;
    color: #fff;
}

/* ==================== PAGE HEADER ==================== */
.page-header {
    border-bottom: 1px solid #333;
    padding: 40px 0;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* ==================== ARTWORK GRID ==================== */
.artwork-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.artwork-card {
    background-color: #111;
    border: 1px solid #222;
    transition: transform 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.artwork-card:hover {
    transform: translateY(-5px);
    border-color: #444;
}

.artwork-card a {
    display: block;
    color: inherit;
}

.artwork-image {
    width: 100%;
    height: 300px;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.artwork-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artwork-image.placeholder {
    color: #555;
    font-size: 14px;
}

.artwork-info {
    padding: 20px;
}

.artwork-title {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 8px;
    color: #fff;
}

.artwork-code {
    font-size: 12px;
    color: #888;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.artwork-size,
.artwork-price,
.artwork-year {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 5px;
}

.artwork-price {
    color: #fff;
    font-weight: 500;
    margin-top: 10px;
}

/* ==================== STATUS BADGES ==================== */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid;
    margin-top: 10px;
}

.status-available {
    border-color: #4caf50;
    color: #4caf50;
}

.status-sold {
    border-color: #f44336;
    color: #f44336;
}

.status-reserved {
    border-color: #ff9800;
    color: #ff9800;
}

.sold-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 4px;
    color: #fff;
}

/* ==================== ARTWORK DETAIL ==================== */
.artwork-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.artwork-detail-image {
    width: 100%;
}

.artwork-detail-image img {
    width: 100%;
    height: auto;
    border: 1px solid #333;
}

.artwork-detail-image .placeholder.large {
    width: 100%;
    height: 500px;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    border: 1px solid #333;
}

.artwork-detail-info h1 {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.artwork-code-large {
    font-size: 14px;
    color: #888;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.series-info {
    font-size: 16px;
    color: #aaa;
    margin-bottom: 30px;
}

.artwork-specs {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #333;
}

.artwork-specs p {
    margin-bottom: 10px;
    font-size: 15px;
}

.artwork-specs strong {
    color: #fff;
    margin-right: 10px;
}

.artwork-description {
    margin-bottom: 40px;
}

.artwork-description h2 {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.artwork-description p {
    color: #ccc;
    line-height: 1.8;
    white-space: pre-line;
}

/* ==================== FORMS ==================== */
.purchase-form-section,
.contact-form-wrapper {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #333;
}

.purchase-form-section h2,
.contact-page h2 {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 25px;
    letter-spacing: 2px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aaa;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    background-color: #111;
    border: 1px solid #333;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #666;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: #666;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

/* ==================== CONTENT PAGES ==================== */
.content-page {
    max-width: 800px;
    margin: 0 auto;
}

.content-section {
    margin-bottom: 50px;
}

.content-section h2 {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.content-section p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 15px;
}

.content-section ul {
    margin-left: 30px;
    margin-bottom: 20px;
    color: #ccc;
}

.content-section li {
    margin-bottom: 10px;
    line-height: 1.8;
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

/* ==================== ERROR PAGE ==================== */
.error-page {
    text-align: center;
    padding: 100px 20px;
}

.error-page h1 {
    font-size: 120px;
    font-weight: 300;
    margin-bottom: 20px;
    color: #fff;
}

.error-page p {
    font-size: 18px;
    color: #aaa;
    margin-bottom: 40px;
}

/* ==================== ADMIN STYLES ==================== */
.admin-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
}

.admin-login-container {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    background-color: #111;
    border: 1px solid #333;
}

.admin-login-container h1 {
    font-size: 28px;
    font-weight: 300;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 4px;
}

.admin-login-form {
    margin-bottom: 20px;
}

.admin-login-footer {
    text-align: center;
    margin-top: 20px;
}

.admin-login-footer a {
    color: #666;
    font-size: 13px;
}

.admin-dashboard,
.admin-edit-page {
    max-width: 1400px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.admin-header h1 {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 2px;
}

.admin-actions {
    display: flex;
    gap: 15px;
}

.admin-section {
    margin-bottom: 50px;
}

.admin-section h2 {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #111;
    border: 1px solid #333;
}

.admin-table thead {
    background-color: #1a1a1a;
}

.admin-table th {
    padding: 15px;
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aaa;
    border-bottom: 1px solid #333;
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid #222;
    color: #ccc;
    font-size: 14px;
}

.admin-table tbody tr:hover {
    background-color: #1a1a1a;
}

.admin-form {
    max-width: 800px;
}

/* ==================== FOOTER ==================== */
footer {
    border-top: 1px solid #333;
    padding: 30px 0;
    margin-top: 60px;
    text-align: center;
    color: #666;
    font-size: 12px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 48px;
    }
    
    .artwork-detail {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .artwork-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .nav-menu {
        gap: 15px;
        margin-top: 15px;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .admin-table {
        font-size: 12px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .error-page h1 {
        font-size: 80px;
    }
}

/* ==================== IMAGE MANAGEMENT ==================== */
.image-management-section {
    margin-top: 40px;
    padding: 30px;
    background-color: #111;
    border: 1px solid #333;
    border-radius: 4px;
}

.image-management-section h3 {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.image-upload-form {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.image-upload-form-standalone {
    margin-top: 20px;
    padding: 20px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
}

.upload-input-group {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 10px;
}

.upload-input-group input[type="file"] {
    flex: 1;
    padding: 10px;
    background-color: #111;
    border: 1px solid #333;
    color: #fff;
    font-size: 14px;
}

.image-upload-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #333;
}

.images-list h4 {
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 20px;
    color: #aaa;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.image-item {
    background-color: #1a1a1a;
    border: 1px solid #333;
    padding: 15px;
    border-radius: 4px;
}

.image-item.primary {
    border-color: #4caf50;
}

.image-preview {
    position: relative;
    width: 100%;
    height: 200px;
    background-color: #000;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.primary-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #4caf50;
    color: #000;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.image-info {
    margin-bottom: 10px;
    font-size: 12px;
    color: #aaa;
}

.image-info p {
    margin: 5px 0;
}

.image-actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.no-images {
    color: #666;
    font-style: italic;
    padding: 20px;
    text-align: center;
}

.info-note {
    padding: 15px;
    background-color: #1a1a1a;
    border-left: 3px solid #666;
    color: #aaa;
    font-size: 14px;
}

/* ==================== ARTWORK DETAIL IMAGES ==================== */
.artwork-detail-images {
    margin-bottom: 40px;
}

.main-image-container {
    width: 100%;
    margin-bottom: 20px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.main-image-container img {
    max-width: 100%;
    max-height: 600px;
    object-fit: contain;
}

.image-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid #333;
    cursor: pointer;
    overflow: hidden;
    background-color: #1a1a1a;
    transition: border-color 0.3s ease;
}

.thumbnail:hover {
    border-color: #666;
}

.thumbnail.active {
    border-color: #fff;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artwork-series {
    font-size: 13px;
    color: #888;
    font-style: italic;
    margin-bottom: 5px;
}

/* ==================== ADMIN DETAIL VIEWS ==================== */
.admin-view-page {
    max-width: 1000px;
}

.detail-section {
    margin-bottom: 40px;
    padding: 30px;
    background-color: #111;
    border: 1px solid #333;
    border-radius: 4px;
}

.detail-section h2 {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
}

.detail-table th {
    text-align: left;
    padding: 12px 15px;
    font-weight: 500;
    color: #aaa;
    width: 200px;
    vertical-align: top;
}

.detail-table td {
    padding: 12px 15px;
    color: #ccc;
}

.detail-table tr {
    border-bottom: 1px solid #222;
}

.message-full {
    background-color: #1a1a1a;
    padding: 20px;
    border-left: 3px solid #666;
    color: #ccc;
    line-height: 1.8;
    white-space: pre-wrap;
}

.message-preview {
    max-width: 300px;
    color: #aaa;
    font-size: 13px;
}

/* ==================== ARTWORK SERIES ==================== */
.artwork-series {
    font-size: 13px;
    color: #888;
    font-style: italic;
    margin-top: 5px;
    margin-bottom: 8px;
}

/* ==================== LOGO IMAGE ==================== */
.logo-image {
    height: 40px;
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 40px;
    max-width: 200px;
    object-fit: contain;
}

/* ==================== ADMIN SETTINGS ==================== */
.admin-settings-page {
    max-width: 800px;
}

.current-logo {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
}


