﻿/* site.css - Stilovi za pomoćne stranice fastMEMORIZER-a */

:root { 
    --bg: #121212; 
    --panel: #1e1e1e; 
    --accent: #007bff; 
    --text: #d4d4d4; 
    --orange: #fd7e14; 
    --gray-text: #888;
    --border: #333;
}

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background: var(--bg); 
    color: var(--text); 
    margin: 0; 
    padding: 0; 
    line-height: 1.8;
}

/* Navigacija - Identična kao u index.html */
.top-bar { 
    background: var(--panel); 
    padding: 8px 20px; 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo { font-size: 16px; font-weight: bold; cursor: pointer; user-select: none; text-decoration: none; }
.logo .fast { color: var(--orange); }
.logo .memorizer { color: var(--gray-text); }

.nav-links { 
    display: flex; 
    gap: 18px; /* Kao u index.html */
    margin-left: auto; 
    margin-right: 20px; 
    align-items: center; 
}
.nav-item { 
    color: var(--gray-text); 
    text-decoration: none; 
    font-size: 11px; /* Kao u index.html */
    font-weight: bold; 
    text-transform: uppercase; 
    transition: 0.2s;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.nav-item:hover { color: var(--orange); }
.active-link { color: var(--text); border-bottom: 1px solid var(--orange); }
.divider { width: 1px; height: 20px; background: var(--border); margin: 0 5px; }

/* Sadržaj stranice */
.content-wrapper {
    max-width: 850px;
    margin: 60px auto;
    padding: 0 25px;
}

h1 { color: var(--orange); font-size: 2.8em; margin-bottom: 15px; line-height: 1.2; }
h2 { color: #fff; margin-top: 50px; border-bottom: 1px solid var(--border); padding-bottom: 10px; font-size: 1.8em; }
h3 { color: var(--accent); margin-top: 35px; }

p { margin-bottom: 25px; font-size: 17px; color: #bcbcbc; }

.image-container {
    background: #000;
    border: 1px solid var(--border);
    padding: 15px;
    text-align: center;
    margin: 40px 0;
    border-radius: 6px;
}
.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.image-caption {
    color: var(--gray-text);
    font-size: 0.9em;
    margin-top: 15px;
    font-style: italic;
}

ul { margin-bottom: 30px; }
li { margin-bottom: 12px; color: #bcbcbc; }

strong { color: #fff; }
/* Stil za "Go to Application" dugme */
.cta-button {
    display: inline-block;
    background: var(--orange);
    color: #fff;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
    margin-top: 30px;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: #e66d00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(253, 126, 20, 0.3);
}

.center-wrapper {
    text-align: center;
    margin-top: 50px;
    padding-bottom: 50px;
}
/* Lightbox efekat za slike */
.image-container img {
    cursor: zoom-in;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Klasa koja se dodaje klikom */
.image-container img.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.5);
    max-width: 90vw;
    max-height: 80vh;
    z-index: 1000;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    cursor: zoom-out;
}

/* Zatamnjenje pozadine kada je slika uvećana */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 999;
}

.lightbox-overlay.active {
    display: block;
}
/* Stil za originalni prikaz (lightbox) */
.image-container img {
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.image-container img.original-size {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centriranje bez dodatnog skale faktora */
    width: auto !important;  /* Forsira originalnu širinu */
    height: auto !important; /* Forsira originalnu visinu */
    max-width: 95vw;         /* Ne dozvoljava da izađe van ekrana ako je baš ogromna */
    max-height: 95vh;
    z-index: 1000;
    cursor: zoom-out;
    box-shadow: 0 0 40px rgba(0,0,0,0.9);
    border: 2px solid var(--border);
}

.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 999;
}

.lightbox-overlay.active {
    display: block;
}
/* --- Sekcija za uporedni prikaz slika --- */
.image-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    margin: 30px 0;
}

.image-container img {
    flex: 1; /* Tera slike da se šire podjednako */
    min-width: 300px; /* Ako je ekran uži od ovoga, skočiće jedna ispod druge (super za mobilni) */
    max-width: 500px; /* Da ne postanu ogromne na 4K monitorima */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.image-caption {
    width: 100%;
    text-align: center;
    margin-top: 15px;
    font-style: italic;
    color: var(--orange); /* Možeš staviti narandžastu da se slaže sa brendom */
}
/* Hard-code za slike koje treba da budu velike na stranici */
.image-container img.full-width-img:not(.original-size) {
    width: 100% !important;
    max-width: 1000px !important;
    display: block;
    margin: 0 auto;
    flex: none !important;
}

/* Osiguraj da Lightbox uvek pobedi */
.image-container img.original-size {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    
    /* Poništi sve širine i pusti sliku da bude "svoja" */
    width: auto !important;
    height: auto !important;
    max-width: 90vw !important;
    max-height: 85vh !important;
    
    z-index: 1000 !important;
}
/* --- POVEĆANJE ZA TABLETE --- */

/* 1. Ovo povećava sve fontove na celom sajtu odjednom */
html {
    font-size: 19px; /* Standard je 16px, ovo ga čini primetno krupnijim */
}

/* 2. Prilagođavanje širine teksta */
.content-wrapper {
    width: 92%;           /* Širi tekst na ekranu tableta */
    max-width: 850px;     /* Ali ne dozvoljava da se previše raširi na laptopu */
    margin: 30px auto;    /* Centriranje */
    line-height: 1.7;     /* Veći razmak između redova za lakše čitanje */
}

/* 3. Rešenje za navigaciju (da ne bude sitna i zbijena) */
@media (max-width: 1024px) {
    .nav-links {
        display: flex;
        flex-wrap: wrap;  /* Ako nema mesta, linkovi idu u novi red */
        justify-content: center;
        gap: 20px;        /* Razmak između linkova da se ne klikne pogrešan prstom */
        padding: 15px 0;
    }

    .nav-item {
        font-size: 1.1rem; /* Krupniji tekst u meniju */
    }

    /* Povećanje naslova na tabletu */
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.7rem; }
    
    /* Dugme (CTA) da bude uočljivije */
    .cta-button {
        display: block;
        width: fit-content;
        margin: 20px auto;
        padding: 18px 35px;
        font-size: 1.3rem;
    }
}

/* 4. Slike da ne "beže" sa ekrana */
img {
    max-width: 100%;
    height: auto;
}
/* Target tablets (typically between 768px and 1024px) */
/* Targets screens smaller than 1024px */
@media screen and (max-width: 1024px) {
    /* Target the specific container and its elements */
    .content-wrapper h1 {
        font-size: 40px !important; 
    }

    .content-wrapper h2 {
        font-size: 34px !important;
    }

    .content-wrapper p, 
    .content-wrapper li {
        font-size: 26px !important; /* Forces the text to be large for testing */
        line-height: 1.6;
    }

    /* Adjust the navigation links for easier tapping */
  .nav-links {
        display: flex;
        flex-wrap: wrap;       /* Allows the second row */
        justify-content: center; /* Centers the links on both rows */
        gap: 15px 20px;        /* Adds 15px vertical and 20px horizontal space */
        padding: 10px 0;
    }

    .nav-item {
        /* Makes links feel like buttons, easier to tap on tablets */
        display: inline-block;
        white-space: nowrap;   /* Prevents a single word link from breaking */
    }
}
.logo {
        font-size: 24px;      /* Increases from your original 16px */
        letter-spacing: 1px;  /* Makes it look cleaner at larger sizes */
        padding: 5px 0;       /* Adds a bit of vertical hit-area */
    }

    /* If you want to make the "fast" part extra bold to match your brand */
    .logo .fast {
        font-weight: 900;
    }
}

}

  