/* PROJECT: Digital Guestbook (Mobile First)
   DATE: 2026
   
   TABLE OF CONTENTS
   ---------------------------------
   01. Variables & Configuration
   02. Reset & Base Styles
   03. Layout Container (Mobile Wrapper)
   04. Header Component
   05. Wi-Fi Card Component 
   06. Accordion System
   07. Typography & Links
   08. Sticky Footer (Emergency Bar)
   09. Review
   ---------------------------------
*/

/* --- 01. VARIABLES & CONFIGURATION --- */
:root {
    /* Brand Colors - Εύκολη αλλαγή θέματος από εδώ */
    --primary: #2A9D8F;       /* Κύριο χρώμα (Teal) */
    --primary-dark: #21867a;  /* Hover state */
    --accent: #E9C46A;        /* Χρώμα έμφασης */
    
    /* Neutral Colors */
    --dark: #0d2630;          /* Κείμενο (Soft Black) */
    --light: #F8F9FA;         /* Background καρτών */
    --bg-body: #F0F2F5;       /* Background σελίδας */
    --white: #FFFFFF;
    
    /* UI Elements */
    --shadow: 0 4px 15px rgba(0,0,0,0.08); /* Soft shadow για βάθος */
    --radius: 16px;           /* Στρογγυλεμένες γωνίες (iOS style) */
    --transition: 0.3s ease;  /* Smooth animations */
}

/* --- 02. RESET & BASE STYLES --- */
* { 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; /* Αφαιρεί το μπλε highlight στο touch */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--dark);
    margin: 0;
    padding-bottom: 100px; /* Χώρος για να μην κρύβεται περιεχόμενο από το Sticky Footer */
    line-height: 1.5;
}

/* --- 03. LAYOUT CONTAINER (MOBILE WRAPPER) --- */
/* Περιορίζει το πλάτος σε desktop για να μοιάζει πάντα με app */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    background: var(--light);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.05); /* Ελαφρύ περίγραμμα σε desktop */
}

.content { 
    padding: 20px; 
    margin-top: -30px; /* Negative margin για να "πατήσουν" οι κάρτες πάνω στο Header */
    position: relative;
    z-index: 2;
}

/* --- 04. HEADER COMPONENT --- */
header {
    background: url('https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&w=800&q=80') center/cover;
    height: 220px;
    position: relative;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    /* Gradient Overlay για να διαβάζονται τα γράμματα */
    box-shadow: var(--shadow);
}

header::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%);
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

.header-content {
    position: absolute;
    bottom: 30px;
    left: 20px;
    color: var(--white);
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }
.subtitle { margin: 5px 0 0; font-size: 15px; opacity: 0.95; font-weight: 400; }

/* --- 05. WI-FI CARD COMPONENT --- */
.wifi-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    margin-bottom: 25px;
}

.wifi-title { 
    font-size: 11px; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    color: #888; 
    margin-bottom: 8px; 
    font-weight: 700;
}

.wifi-network { 
    font-size: 20px; 
    font-weight: 800; 
    color: var(--dark);
    margin-bottom: 20px; 
    display: block; 
}

/* Copy Button Styling */
.btn-copy {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 14px 24px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: transform 0.1s ease, background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(42, 157, 143, 0.3); /* Colored shadow */
}

.btn-copy:active { transform: scale(0.96); } /* Click effect */
.btn-copy.copied { background: var(--dark); } /* Success state */


/* --- 06. ACCORDION SYSTEM --- */
.accordion-item {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
}

.accordion-header {
    padding: 18px 20px;
    width: 100%;
    text-align: left;
    background: var(--white);
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: background 0.2s;
}

.accordion-header:active { background-color: #f9f9f9; }

.chevron { 
    transition: transform 0.3s ease; 
    font-size: 12px; 
    opacity: 0.5; 
}
.accordion-header.active .chevron { transform: rotate(180deg); }

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fafafa;
}

.accordion-content { 
    padding: 20px; 
    line-height: 1.6; 
    font-size: 15px; 
    color: #555; 
    border-top: 1px solid #eee;
}

.accordion-content ul { padding-left: 20px; margin: 0; }
.accordion-content li { margin-bottom: 8px; }

/* --- 07. TYPOGRAPHY & LINKS --- */
a.external-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dotted var(--primary);
}

/* --- 08. STICKY FOOTER (EMERGENCY BAR) --- */
.emergency-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: var(--white);
    padding: 15px 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    display: flex;
    gap: 12px;
    z-index: 100;
    /* iOS Safe Area fix */
    padding-bottom: max(15px, env(safe-area-inset-bottom));
}

.sos-btn {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.1s;
}

.sos-btn:active { transform: scale(0.98); }
.btn-host { background: #E9F5F4; color: var(--primary-dark); }
.btn-sos { background: #FFEBEE; color: #D32F2F; }

/* 09 --- REVIEW INTERCEPTOR --- */
.review-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px 20px;
    text-align: center;
    margin-top: 30px;
    margin-bottom: 40px; /* Λίγο έξτρα χώρος από το footer */
    box-shadow: var(--shadow);
    border-top: 4px solid var(--accent); /* Κίτρινη γραμμή πάνω για έμφαση */
}

.review-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--dark);
}

.review-card p {
    margin: 0 0 20px;
    font-size: 14px;
    color: #666;
}

.review-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-review {
    flex: 1; /* Πιάνουν ίδιο χώρο */
    padding: 12px 10px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.2s, background 0.2s;
}

/* Style για το "Κάτι λείπει" (Λιγότερο έντονο - Secondary Action) */
.btn-review.private {
    background: #F5F5F5;
    color: #666;
    border: 1px solid #EEE;
}

/* Style για το "Ήταν τέλεια" (Έντονο - Primary Action) */
.btn-review.public {
    background: var(--dark);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(38, 70, 83, 0.2);
}

.btn-review:active {
    transform: scale(0.96);
}