/* --- style.css - Fancy Slideshow Edition --- */

/* 1. Ρυθμίσεις & Χρώματα */
:root {
    --primary-color: #2e7d32;
    --primary-dark: #1b5e20;
    --accent-color: #ff9800;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --text-dark: #333333;
    --text-grey: #666666;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --radius: 8px;
}

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3 { margin-top: 0; font-weight: 700; }
a { text-decoration: none; color: inherit; }

/* 2. Header & Navigation */
header {
    background-color: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-bottom: 3px solid var(--primary-color);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand { display: flex; flex-direction: column; }
.logo { color: var(--primary-color); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; }
.slogan { font-size: 0.8rem; color: var(--text-grey); font-weight: 600; }

.desktop-nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 20px; }
.desktop-nav a { font-weight: 600; color: var(--text-dark); transition: color 0.3s; font-size: 1rem; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--primary-color); }
.desktop-nav a.cta-btn { background-color: var(--accent-color); color: white; padding: 8px 15px; border-radius: var(--radius); }
.desktop-nav a.cta-btn:hover { background-color: #f57c00; }

/* 3. Sidebar */
.mobile-toggle { display: block; font-size: 1.8rem; background: none; border: none; cursor: pointer; color: var(--text-dark); margin-right: 15px; }
.sidenav { height: 100%; width: 0; position: fixed; z-index: 2000; top: 0; left: 0; background-color: #111; overflow-x: hidden; transition: 0.5s; padding-top: 60px; box-shadow: 4px 0 15px rgba(0,0,0,0.5); }
.sidenav a { padding: 10px 10px 10px 30px; text-decoration: none; font-size: 1.2rem; color: #ccc; display: block; transition: 0.3s; border-bottom: 1px solid #222; }
.sidenav a:hover { color: var(--accent-color); background: rgba(255,255,255,0.05); }
.sidenav .closebtn { position: absolute; top: 0; right: 25px; font-size: 36px; margin-left: 50px; border: none; }
.sidenav-title { color: white; font-size: 1.5rem; padding-left: 30px; margin-bottom: 20px; font-weight: bold; }

/* 4. General Sections */
.section { padding: 60px 20px; max-width: 1100px; margin: 0 auto; }
.bg-light { background-color: var(--bg-light); width: 100%; }
.section-title { text-align: center; color: var(--primary-color); margin-bottom: 40px; font-size: 2rem; }

.hero { position: relative; color: white; text-align: center; background-color: #222; overflow: hidden; }
.hero img { width: 100%; height: 500px; object-fit: cover; opacity: 0.7; display: block; }
.hero-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 90%; max-width: 800px; }
.hero h1 { font-size: 2.5rem; margin-bottom: 10px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.btn-group { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.btn { padding: 12px 25px; border-radius: 50px; font-weight: 700; transition: transform 0.2s, background 0.3s; border: none; cursor: pointer; font-size: 1rem; }
.btn-primary { background-color: var(--primary-color); color: white; }
.btn-primary:hover { background-color: var(--primary-dark); transform: scale(1.05); }
.btn-secondary { background-color: var(--accent-color); color: white; }
.btn-secondary:hover { background-color: #f57c00; transform: scale(1.05); }

.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.category-card { background: white; padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; transition: transform 0.3s; border: 1px solid #eee; }
.cat-icon { font-size: 3rem; margin-bottom: 10px; display: block; }
.offers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.offer-card { background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.offer-badge { position: absolute; top: 10px; right: 10px; background-color: var(--accent-color); color: white; padding: 5px 10px; border-radius: 20px; font-weight: bold; font-size: 0.9rem; }
.offer-card img { width: 100%; height: 200px; object-fit: cover; }
.offer-info { padding: 20px; text-align: center; }
.price { font-size: 1.3rem; color: var(--primary-color); font-weight: bold; }
.old-price { text-decoration: line-through; color: #999; font-size: 0.9rem; margin-right: 10px; }
.local-trust { text-align: center; max-width: 800px; margin: 0 auto 50px; }

/* 5. Footer */
footer { background-color: #333; color: white; padding: 40px 20px; margin-top: auto; }
.footer-content { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.footer-section h4 { color: var(--accent-color); margin-bottom: 15px; }
.footer-section p, .footer-section li { color: #ccc; margin-bottom: 10px; }
.footer-bottom { text-align: center; margin-top: 30px; border-top: 1px solid #444; padding-top: 20px; font-size: 0.9rem; color: #888; }

/* --- 6. FANCY GALLERY STYLES --- */

.gallery-grid-page {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Ελαφρώς μεγαλύτερα κουτάκια */
    gap: 25px;
    padding: 30px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px; /* Πιο στρογγυλεμένες γωνίες */
    cursor: pointer;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1); /* Απαλή σκιά αρχικά */
    transition: all 0.4s ease; /* Ομαλή κίνηση */
    border: 3px solid white; /* Λευκό περίγραμμα για στυλ κορνίζας */
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

/* Fancy Hover Effects */
.gallery-item:hover {
    transform: translateY(-10px); /* Σηκώνεται προς τα πάνω */
    box-shadow: 0 20px 30px rgba(0,0,0,0.2); /* Η σκιά μεγαλώνει */
}

.gallery-item:hover img {
    transform: scale(1.15); /* Η εικόνα ζουμάρει λίγο */
}

/* Το Overlay (Σκιά με γράμματα) */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(46, 125, 50, 0.85); /* Πράσινο ημιδιάφανο φίλτρο */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* Αόρατο αρχικά */
    transition: opacity 0.4s ease;
    backdrop-filter: blur(2px); /* Θόλωμα στο φόντο */
}

.gallery-overlay p {
    font-size: 1.3rem;
    font-weight: bold;
    border: 2px solid white;
    padding: 10px 25px;
    border-radius: 30px;
    transform: translateY(20px); /* Έρχεται από κάτω */
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1; /* Εμφανίζεται */
}

.gallery-item:hover .gallery-overlay p {
    transform: translateY(0); /* Το κείμενο ανεβαίνει στη θέση του */
}


/* --- Slideshow Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2500;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.95);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mySlides { display: none; width: 100%; height: 100%; }
.mySlides img { width: 100%; height: 100%; object-fit: contain; border-radius: 5px; }

/* Buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
}
.next { right: 0; border-radius: 3px 0 0 3px; }
.prev { left: 0; border-radius: 3px 0 0 3px; }
.prev:hover, .next:hover { background-color: var(--accent-color); }

.close {
    color: white;
    position: absolute;
    top: 15px;
    right: 35px;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2600;
    transition: 0.3s;
}
.close:hover { color: var(--accent-color); }

/* Responsive adjustments */
@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .hero h1 { font-size: 1.8rem; }
    .hero img { height: 400px; }
    .btn-group { flex-direction: column; width: 100%; }
    .btn { width: 100%; }
}
/* --- Matrix4U Link Style --- */
.matrix-link {
    color: #00e676 !important; /* Ανοιχτό Νέον Πράσινο */
    text-decoration: underline !important; /* Πάντα υπογραμμισμένο */
    font-weight: bold;
    transition: color 0.3s ease;
}

.matrix-link:hover {
    color: #69f0ae !important; /* Ακόμα πιο ανοιχτό στο ποντίκι */
    text-shadow: 0 0 5px rgba(0, 230, 118, 0.5); /* Λάμψη νέον */
}