/* HARLETI FOTOD - ULTIMATE CLEAN VERSION 2026
   Kõik-ühes: Kompaktne header, stabiilne galerii, õige kontaktivorm ja suured ikoonid.
*/

:root {
    --must: #0a0a0a;
    --hall-tume: #141414;
    --aktsent: #00adb5;
    --valge: #ffffff;
    --tekst-hall: #888;
    --border: #222;
}

/* 1. ÜLDSEADED */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body {
    background-color: var(--must);
    color: var(--valge);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 2. HEADER (ARVUTI JA MOBIIL) */
header {
    background: #000;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo-area img {
    height: 45px; /* Fikseeritud kõrgus hoiab headeri kontrolli all */
    width: auto;
    display: block;
}

nav a {
    color: var(--tekst-hall);
    text-decoration: none;
    margin-left: 25px;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: 0.3s ease;
}

nav a:hover { 
    color: var(--aktsent); 
}

/* 3. GALERII RUUDUSTIK */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 25px;
    padding: 40px 0;
}

.photo-card {
    background: var(--hall-tume);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.photo-card:hover {
    transform: translateY(-5px);
}

.photo-card img {
    width: 100%;
    height: 250px;
    object-fit: cover; /* See hoiab ära piltide venimise */
    display: block;
}

.photo-card h3 {
    padding: 15px 15px 5px;
    font-size: 1rem;
    text-align: center;
    color: var(--aktsent);
    text-transform: uppercase;
}

.exif-info {
    padding: 10px;
    font-size: 0.7rem;
    text-align: center;
    color: #555;
    background: #0d0d0d;
}

/* 4. KONTAKTIVORM (ÕIGED PROPORTSIOONID) */
.contact-container {
    max-width: 600px; 
    margin: 60px auto;
    background: var(--hall-tume);
    padding: 45px;
    border-radius: 15px;
    border: 1px solid var(--border);
}

.contact-container h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 2rem;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background: #000;
    border: 1px solid #333;
    color: #fff;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    border-color: var(--aktsent);
}

.contact-form button {
    width: 100%;
    padding: 18px;
    background: var(--aktsent);
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 1rem;
    transition: 0.3s;
}

.contact-form button:hover {
    background: #00ced6;
}

/* 5. JALUS JA SOTSIAALMEEDIA */
.site-footer {
    text-align: center;
    padding: 60px 0;
    border-top: 1px solid var(--border);
    margin-top: 50px;
}

.social-links {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.social-links a {
    font-size: 2.8rem; /* Suured ikoonid */
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.1);
}

.fa-facebook-f { color: #1877F2; }

.fa-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.site-footer p {
    color: #444;
    font-size: 0.8rem;
}

/* 6. MOBIILI KOHANDUSED */
@media (max-width: 768px) {
    header {
        padding: 8px 0;
    }

    header .container {
        flex-direction: column;
        gap: 5px;
    }

    .logo-area img {
        height: 32px; /* Mobiilis väga kompaktne logo */
        margin-bottom: 5px;
    }

    nav a {
        margin: 0 10px;
        font-size: 0.75rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        margin: 30px 15px;
        padding: 30px 20px;
    }

    .social-links a {
        font-size: 3.2rem; /* Telefonis veelgi suuremad ikoonid */
    }
}
.hero {
    height: 80vh; /* Võtab 80% ekraani kõrgusest */
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('images/avaleht.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-size: 4rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 10px;
}

.aktsent-tekst {
    color: var(--aktsent);
}

.hero-content p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero nupp */
.btn-hero {
    padding: 15px 35px;
    background: var(--aktsent);
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 50px;
    transition: 0.3s;
    display: inline-block;
}

.btn-hero:hover {
    background: #fff;
    color: var(--must);
    transform: scale(1.05);
}

/* Sujuv kerimine */
html {
    scroll-behavior: smooth;
}

/* Mobiili seaded herole */
@media (max-width: 768px) {
    .hero { height: 60vh; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1rem; padding: 0 20px; }
}
/* --- PHOTO INFO BAR --- */
.photo-info-bar {
    background: #111; /* Tume taust */
    padding: 25px 0;
    border-bottom: 1px solid #222;
    border-top: 1px solid #222;
}

.stats-flex {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-box i {
    font-size: 1.8rem;
    color: #444; /* Vaikimisi hallikas ikoon */
}

.stat-box.highlight i {
    color: var(--aktsent); /* Päike on sinu aktsentvärviga */
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-content small {
    color: #666;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.stat-content strong {
    color: #fff;
    font-size: 1.1rem;
}

/* Mobiilis paneb need üksteise alla */
@media (max-width: 768px) {
    .stats-flex {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 10%;
    }
}
/* --- ILUS NÄIDIKUTE DISAIN (PÕHISTIIL) --- */
.photo-info-pro {
    background: #0a0a0a;
    padding: 50px 0;
    border-bottom: 1px solid #1a1a1a;
}

.stats-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap; /* Võimaldab elementidel vajadusel uuele reale minna */
}

.stat-card {
    background: #111;
    padding: 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 200px; /* Arvutis hoiab kastid võrdsed */
    border: 1px solid #1a1a1a;
    transition: all 0.3s ease;
}

.stat-card i {
    font-size: 2rem;
    color: #333;
}

/* Aktiivse tunni esiletõstmine */
.stat-card.active {
    background: #161616;
    border-color: var(--aktsent);
    box-shadow: 0 0 15px rgba(0, 173, 181, 0.1);
}

.stat-card.active i {
    color: var(--aktsent);
}

.status-highlight i {
    color: var(--aktsent);
}

.stat-content small {
    display: block;
    color: #666;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.stat-content strong {
    color: #fff;
    font-size: 1.1rem; /* Veidi väiksem, et mahuks paremini */
    font-weight: bold;
}

/* --- MOBIILI PARANDUS (KUI EKRAAN ON KITSAS) --- */
@media (max-width: 768px) {
    .photo-info-pro {
        padding: 30px 0;
    }

    .stats-grid {
        display: flex;
        flex-direction: column; /* Kastid üksteise alla */
        gap: 12px;
        padding: 0 10px; /* Hoiab kaste servast eemal */
    }

    .stat-card {
        width: 100%;
        min-width: unset; /* Eemaldab arvuti piirangu */
        padding: 15px 20px;
        gap: 15px;
    }

    .stat-card i {
        font-size: 1.5rem; /* Kompaktsem mobiilis */
    }

    .stat-content strong {
        font-size: 1rem;
    }
}
/* Sihib absoluutselt kõiki linke, mis sisaldavad teksti "Tagasi" */
a {
    transition: color 0.3s ease !important;
}

/* See reegel otsib üles lingi, mis viib tagasi ja muudab selle halliks */
a[href*="index.php"], 
.back-link, 
.album-back {
    color: #888888 !important; /* Sinu --tekst-hall väärtus */
    text-decoration: none !important;
    text-transform: uppercase !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
}

/* Hover efekt - muudab lingi aktsentvärviks */
a[href*="index.php"]:hover, 
.back-link:hover, 
.album-back:hover {
    color: #00adb5 !important; /* Sinu --aktsent väärtus */
}
/* Sihime täpselt seda 'btn' klassi, mis viib tagasi albumisse */
a.btn[href='galerii.php'] {
    background: transparent !important; /* Eemaldab nupu taustavärvi, kui see on olemas */
    border: none !important;           /* Eemaldab nupu raami */
    padding: 0 !important;             /* Eemaldab nupu sisemise tühjuse */
    color: var(--tekst-hall) !important; /* Muudab teksti halliks */
    text-decoration: none !important;
    text-transform: uppercase !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    display: inline-block;
    margin-bottom: 20px;               /* Lisab veidi vahet galeriiga */
}

/* Hover efekt */
a.btn[href='galerii.php']:hover {
    color: var(--aktsent) !important;    /* Muutub sinakaks */
    background: transparent !important;
}
/* Kõik galerii lingid - hallid ja paksud */
.album-link, .back-link {
    color: #888888 !important; /* Kasuta oma halli koodi siin */
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}

/* Kui hiir läheb peale - sinakas (aktsent) */
.album-link:hover, .back-link:hover {
    color: #00adb5 !important; /* Sinu aktsentvärv */
}