@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

/* --- RESET & GENERAL --- */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #0a0a0a;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: #888;
}

#content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.page {
    padding: 60px 8%;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2em;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 400;
    color: #fff;
    letter-spacing: 2px;
}

/* --- HEADER (CSS Grid 3 Στηλών) --- */
header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 50px;
    background: #0a0a0a;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #1a1a1a;
}

.header-left {
    justify-self: start;
}

.header-left nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.header-nav-link {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #bbb;
    transition: color 0.3s;
}

.header-nav-link:hover {
    color: #fff;
}

.header-center {
    justify-self: center;
}

.site-logo img {
    height: 60px;
    width: auto;
    display: block;
    margin: 10px auto;
}

.header-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-greeting {
    color: #aaa;
    font-size: 11px;
    letter-spacing: 1px;
}

.link-password,
.link-register {
    color: #bbb;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.link-logout {
    color: #ff9999;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.lang-switch-inline {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-left: 1px solid #333;
    padding-left: 20px;
}

.lang-switch-inline a {
    color: #555;
    font-weight: 300;
}

.lang-switch-inline a.active {
    color: #fff;
    font-weight: 600;
}

/* --- FORMS (ΣΥΝΔΕΣΗ / ΕΓΓΡΑΦΗ / ΚΩΔΙΚΟΙ) --- */
.page-container {
    max-width: 500px;
    margin: 40px auto;
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
}

..form-box {
    background: #111;
    border: 1px solid #222;
    padding: 40px;
    width: 100%; /* Γεμίζει το 100% του container */
    box-sizing: border-box;
    box-shadow: 0 15px 35px rgba(0,0,0,0.7);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 10px;
    letter-spacing: 2px;
    color: #888;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.form-input {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid #333;
    color: #fff;
    box-sizing: border-box;
    outline: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    transition: border-color 0.3s;
}

.form-input:focus {
    border-color: #666;
}

.form-btn {
    width: 100%;
    background: #fff;
    color: #000;
    border: none;
    padding: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.form-btn:hover {
    background: #ddd;
}

.form-footer-text {
    text-align: center;
    margin-top: 25px;
    font-size: 12px;
    color: #777;
}

.form-footer-text a {
    color: #fff;
    text-decoration: underline;
}

/* --- HOME PAGE BACKGROUND --- */
#home {
    position: relative;
    flex-grow: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    background-image: url('uploads/artwork_bg.jpg');
    background-size: cover;
    background-position: center;
}

#home::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 5, 5, 0.75);
    z-index: 1;
}

#home .home-container-custom {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
}

.home-name {
    color: #fff; 
    font-family: 'Playfair Display', serif; 
    font-size: clamp(24px, 3.5vw, 50px); 
    line-height: 1.25; 
    letter-spacing: 2px;
    text-align: left;
    text-transform: uppercase;
}

.home-name .mima-logo-text {
    text-transform: none;
    font-weight: 600;
}

/* --- ABOUT PAGE --- */
.about-page-container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 20px;
}

.about-card {
    background: #111;
    border: 1px solid #222;
    padding: 50px;
    color: #ccc;
    line-height: 1.8;
    font-size: 14px;
}

.about-header {
    text-align: center;
    border-bottom: 1px solid #222;
    padding-bottom: 30px;
    margin-bottom: 40px;
}

.about-title {
    font-family: 'Playfair Display', serif;
    color: #fff;
    font-size: 2.2em;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.about-subtitle {
    color: #777;
    font-size: 13px;
    letter-spacing: 2px;
    margin: 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: start;
}

.about-text {
    font-weight: 300;
    text-align: justify;
}

.about-image-wrapper {
    width: 100%;
    height: 420px;
    border: 1px solid #333;
    overflow: hidden;
}

.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- COLLECTION / CATEGORIES --- */
.categories-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 70vh;
    margin: 80px 30px 30px 30px;
    gap: 2px;
    background: #111;
}

.category-box {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px;
    background-color: #000;
}

.category-bg {
    position: absolute;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.4) grayscale(50%);
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-box:hover .category-bg {
    filter: brightness(0.8) grayscale(0%);
    transform: scale(1.03);
}

.category-label {
    position: relative;
    z-index: 2;
    font-family: 'Playfair Display', serif;
    font-size: 1.5vw;
    color: #fff;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-align: center;
    padding: 20px;
    pointer-events: none;
}

/* --- GALLERY / ARTWORKS --- */
.collection-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
}

.collection-item {
    cursor: pointer;
}

.collection-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
    display: block;
}

.collection-item:hover .collection-img {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.collection-title {
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
    margin-top: 12px;
}

.collection-desc {
    font-size: 11px;
    color: #777;
    margin-top: 4px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.btn-back-collections {
    border: 1px solid #444;
    padding: 15px 30px;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #aaa;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-back-collections:hover {
    color: #fff;
    border-color: #888;
}

.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 5, 5, 0.95);
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 40px;
    box-sizing: border-box;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 20px 50px rgba(0,0,0,0.9);
    border: 1px solid #222;
}

.lightbox-close {
    position: absolute;
    top: 30px; right: 40px;
    color: #aaa;
    font-size: 35px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #fff;
}

/* --- CONTACT PAGE --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    max-width: 1100px;
    margin: 40px auto;
    align-items: start;
}

.contact-info-side h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2em;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 25px;
    text-transform: uppercase;
    border-bottom: 1px solid #222;
    padding-bottom: 10px;
}

.contact-info-side p,
.contact-info-side a {
    font-size: 13px;
    color: #999;
    line-height: 2;
    display: block;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.contact-info-side a:hover {
    color: #fff;
}

.contact-info-side .section-space {
    margin-top: 40px;
}

.contact-form-box {
    position: relative;
    background: linear-gradient(rgba(10, 10, 10, 0.90), rgba(10, 10, 10, 0.90)), url('uploads/artwork_bg.jpg');
    background-size: cover;
    background-position: center;
    border: 1px solid #222;
    padding: 50px 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}

.contact-form-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5em;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.contact-form-box p.form-desc {
    font-size: 12px;
    color: #888;
    line-height: 1.7;
    margin-bottom: 30px;
}

.contact-form-box input, 
.contact-form-box textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.contact-form-box input:focus, 
.contact-form-box textarea:focus {
    border-color: #fff;
}

.contact-form-box input::placeholder, 
.contact-form-box textarea::placeholder {
    color: #888;
}

.contact-row {
    display: flex;
    gap: 20px;
}

.contact-row input {
    flex: 1;
}

.recaptcha-box {
    background: #f9f9f9;
    border: 1px solid #d3d3d3;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 304px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.recaptcha-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.recaptcha-left input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin: 0;
    cursor: pointer;
}

.recaptcha-left label {
    color: #000;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
}

.recaptcha-right {
    text-align: center;
}

.recaptcha-right span {
    display: block;
    font-size: 9px;
    color: #555;
    margin-top: 2px;
}

.btn-submit {
    background-color: #b52a3b;
    color: #fff;
    border: none;
    padding: 14px 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.btn-submit:hover {
    background-color: #931e2b;
}

/* --- FOOTER --- */
.site-footer {
    background: #0d0d0d;
    border-top: 1px solid #1a1a1a;
    padding: 10px 10px;
    color: #aaa;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 5px;
}

.footer-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6em;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.footer-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-form {
    display: flex;
    border: 1px solid #333;
    background: #111;
    max-width: 500px;
}

.footer-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px;
    color: #fff;
    outline: none;
    font-size: 13px;
}

.footer-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 0 22px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 30px;
}

.social-list {
    display: flex;
    flex-direction: row;
    gap: 14px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #888;
    font-size: 13px;
    transition: color 0.3s;
}

.social-link:hover {
    color: #fff;
}

.footer-copyright {
    border-top: 1px solid #1a1a1a;
    padding-top: 10px;
    text-align: center;
    font-size: 11px;
    color: #555;
    letter-spacing: 1px;
}

/* --- MODAL POPUP --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 10, 10, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    animation: fadeInModal 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: #111;
    border: 1px solid #222;
    padding: 60px 50px;
    width: 100%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.9);
    text-align: center;
    box-sizing: border-box;
}

.modal-close {
    position: absolute;
    top: 20px; right: 25px;
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #fff;
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.modal-desc {
    color: #888;
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 30px;
    font-weight: 300;
}

@keyframes fadeInModal {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .collection-grid-4 { 
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 900px) {
    header {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        text-align: center;
    }

    .header-left, .header-center, .header-right {
        justify-self: center;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .header-left nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .contact-wrapper, .about-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        padding: 0 20px;
    }

    .contact-row {
        flex-direction: column;
        gap: 0;
    }

    .categories-container { 
        grid-template-columns: 1fr; 
        height: auto; 
    }

    .category-box { 
        height: 35vh; 
    }

    .category-label { 
        font-size: 18px; 
    }
}

@media (max-width: 768px) {
    .footer-main-grid,
    .exhibition-card { 
        grid-template-columns: 1fr !important; 
        gap: 40px !important; 
    }
}

@media (max-width: 600px) {
    .collection-grid-4 { 
        grid-template-columns: 1fr; 
    }
}

/* --- EXHIBITIONS PAGE --- */
.exhibitions-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.exhibition-card {
    background: #111;
    border: 1px solid #222;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    padding: 30px;
    align-items: center;
}

.exhibition-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.exhibition-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4em;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.exhibition-date {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    margin-bottom: 15px;
    display: block;
}

.exhibition-desc {
    font-size: 13px;
    color: #ccc;
    line-height: 1.8;
    font-weight: 300;
}

/* --- ADMIN DASHBOARD --- */
.admin-login-body {
    background: #0a0a0a;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.admin-login-box {
    background: #111;
    border: 1px solid #222;
    padding: 40px;
    width: 100%;
    max-width: 350px;
    text-align: center;
}

.admin-login-box h2 {
    font-family: 'Playfair Display', serif;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    border-bottom: 1px solid #1a1a1a;
}

.admin-header-title {
    font-family: 'Playfair Display', serif;
    letter-spacing: 2px;
    font-size: 18px;
    color: #fff;
    margin: 0;
}

.admin-header-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.admin-header-link {
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
}

.admin-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.admin-nav {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #222;
    padding-bottom: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.admin-nav a {
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    text-decoration: none;
    padding-bottom: 5px;
}

.admin-nav a.active {
    color: #fff;
    border-bottom: 2px solid #fff;
}

.admin-card {
    background: #111;
    border: 1px solid #222;
    padding: 30px;
    margin-bottom: 30px;
}

.admin-card-small {
    max-width: 500px;
    margin: 0 auto;
}

.admin-card h3 {
    font-family: 'Playfair Display', serif;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.admin-card-divider {
    margin-top: 40px;
    border-top: 1px solid #222;
    padding-top: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.admin-table th, 
.admin-table td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #222;
    font-size: 13px;
    color: #ccc;
}

.admin-table th {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 11px;
}

.admin-table img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 2px;
}

.admin-message {
    background: #1a1a1a;
    border-left: 3px solid #fff;
    padding: 12px;
    margin-bottom: 25px;
    font-size: 13px;
    color: #fff;
}

.admin-badge {
    padding: 3px 8px;
    font-size: 10px;
    border: 1px solid #444;
}

.admin-badge-admin {
    background: #333;
}

.admin-badge-user {
    background: #1a1a1a;
}