/* 1. GLOBAL SETTINGS */
html { 
    scroll-behavior: smooth; 
}

body {
    background: radial-gradient(circle, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.9) 100%), url('mali.jpg');
    background-size: cover; 
    background-position: center; 
    background-attachment: fixed; 
    color: white; 
    font-family: 'Oswald', sans-serif; 
    margin: 0;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    min-height: 100vh;
}

header {
    background-color: #d40000; 
    width: 100%; 
    padding: 15px 0; 
    text-align: center;
    letter-spacing: 4px; 
    font-weight: 700; 
    box-shadow: 0px 5px 20px rgba(0,0,0,0.8);
}

/* 2. MAIN BOX */
.main-box {
    background: rgba(15, 15, 15, 0.75); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1); 
    margin: 40px 0; 
    padding: 30px;
    width: 90%; 
    max-width: 450px; 
    box-shadow: 0px 20px 50px rgba(0, 0, 0, 0.5);
    text-align: center; 
    border-radius: 20px;
    box-sizing: border-box;
}

.logo { 
    width: 100%; 
    max-width: 400px; 
    height: auto; 
    margin-bottom: -20px; 
    display: block; 
    margin-left: auto; 
    margin-right: auto;
    filter: drop-shadow(0 0 8px rgba(212, 0, 0, 0.6));
}

h2 { 
    margin: 0; 
    color: #d40000; 
    font-size: 2.2rem; 
    letter-spacing: 5px; 
}

.top-contact { 
    margin-bottom: 20px; 
}

.phone-link { 
    color: #d40000; 
    text-decoration: none; 
    font-weight: 700; 
    transition: 0.3s; 
}

.phone-link:hover { 
    color: white; 
}

.email-link { 
    font-size: 0.9rem; 
}

.subtext { 
    font-size: 0.8rem; 
    color: #888; 
}

/* 3. CALCULATOR STYLE */
.calc-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    border: 1px solid rgba(212, 0, 0, 0.3);
}

.calc-subtitle { 
    font-size: 0.8rem; 
    color: #aaa; 
}

.calc-input {
    background: #222; 
    border: 1px solid #444; 
    color: white;
    padding: 10px; 
    font-family: 'Oswald', sans-serif; 
    font-size: 1.2rem;
    width: 80px; 
    text-align: center; 
    border-radius: 5px;
}

#weightResult {
    margin-top: 15px; 
    font-size: 1.3rem; 
    color: #ffcc00; 
    font-weight: bold; 
    min-height: 1.5rem;
}

/* 4. TABLES & BUTTONS */
table { 
    width: 100%; 
    margin: 20px 0; 
    border-collapse: collapse; 
}

th { 
    color: #d40000; 
    padding: 10px; 
    border-bottom: 2px solid #333; 
}

td { 
    padding: 12px; 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
}

.button-group { 
    display: flex; 
    gap: 10px; 
    justify-content: center; 
    margin: 20px 0; 
    flex-wrap: wrap; 
}

.btn-main, .btn-secondary { 
    display: inline-block;
    text-decoration: none;
    padding: 15px 25px; 
    font-family: 'Oswald', sans-serif; 
    font-weight: 700; 
    text-transform: uppercase; 
    border-radius: 5px; 
    cursor: pointer; 
    transition: 0.3s; 
    text-align: center;
}

.btn-main, .btn-main:visited, 
.btn-secondary, .btn-secondary:visited { 
    color: white !important; 
}

.btn-main { background: #d40000; border: none; }
.btn-secondary { background: transparent; border: 2px solid white; }

.btn-main:hover { transform: scale(1.05); background: #ff0000; color: white; }
.btn-secondary:hover { background: white; color: black !important; }

.btn-calc { padding: 10px 15px; }
.btn-full { width: 100%; margin-top: 10px; }

/* 5. GALLERY & MODAL */
.photo-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 8px; 
    margin: 20px 0; 
}

.photo-item { 
    aspect-ratio: 1/1; 
    overflow: hidden; 
    border-radius: 5px; 
    cursor: pointer; 
}

.photo-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: 0.4s; 
}

.photo-item img:hover { 
    transform: scale(1.1); 
}

.modal { 
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.9); 
}

.modal-content { 
    margin: auto; 
    display: block; 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    max-width: 90%; 
    max-height: 80vh; 
    border: 2px solid #d40000; 
    border-radius: 10px; 
}

.close { 
    position: absolute; 
    top: 20px; 
    right: 35px; 
    color: #fff; 
    font-size: 50px; 
    font-weight: bold; 
    cursor: pointer; 
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    font-weight: bold;
    padding: 16px;
    cursor: pointer;
    user-select: none;
}

.prev { left: 10px; }
.next { right: 10px; }

.map-container { 
    margin: 20px 0; 
    border-radius: 10px; 
    overflow: hidden; 
    border: 1px solid rgba(255,255,255,0.1); 
}

.back-to-top {
    color: #d40000; 
    text-decoration: none; 
    font-size: 0.8rem;
}

/* 6. PRIVACY MODAL & FOOTER */
.privacy-footer-link {
    margin-top: 15px; 
    font-size: 0.8rem;
}

.privacy-footer-link a {
    color: #888; 
    text-decoration: underline;
}

.privacy-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.privacy-modal-content {
    background-color: #1a1a1a;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #d40000;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    position: relative;
    color: #fff;
}

.privacy-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.privacy-title {
    color: #d40000; 
    margin-top: 0;
}

.privacy-list {
    text-align: left; 
    font-size: 0.9rem; 
    line-height: 1.5; 
    padding-left: 20px; 
    color: #ccc;
}

.red-link {
    color: #d40000;
}

/* 7. FLOATING NOTICE */
.floating-notice {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #111;
    border: 1px solid #d40000;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    z-index: 1000;
}

.notice-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-content p {
    margin: 5px 0 0 0;
    font-size: 0.85rem;
}

.notice-close {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 1.1rem;
}
/* STILOVI ZA FORMULAR / OBRAZAC */
.signup-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    border: 1px solid rgba(212, 0, 0, 0.3);
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.form-input {
    background: #222;
    border: 1px solid #444;
    color: white;
    padding: 12px 15px;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-radius; /* Osigurava da padding ne širi element van okvira */
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #d40000;
}

/* Stil za opcije unutar padajućeg izbornika */
.form-input option {
    background-color: #222;
    color: white;
}
.timer-display {
    font-family: 'Courier New', Courier, monospace; /* Tehnički look */
    /* ILI */
    font-family: Arial, sans-serif; /* Čisti moderan look */
    font-variant-numeric: tabular-nums;
}
/* KONTAKT I SOCIAL GUMBI */
.top-contact {
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    width: 100%;
    max-width: 280px;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: white !important;
}

.social-icon:hover {
    transform: translateY(-2px);
}

/* Telefon - Crveni klupski stil */
.social-icon.phone-btn {
    background: #d40000;
    border: 1px solid #d40000;
}

.social-icon.phone-btn:hover {
    background: #ff0000;
    box-shadow: 0 5px 15px rgba(212, 0, 0, 0.4);
}

/* Email - Tamno sivi stil */
.social-icon.email-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon.email-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

/* Instagram - Gradijent */
.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border: none;
}

.social-icon.instagram:hover {
    box-shadow: 0 5px 15px rgba(220, 39, 67, 0.4);
}
/* SEKCIJA: ŠTO PONIJETI */
.first-training-section {
    text-align: center;
    padding: 40px 20px;
    background: rgba(20, 20, 20, 0.6);
    border-radius: 12px;
    margin: 30px auto;
    max-width: 800px;
    border: 1px solid rgba(255, 0, 0, 0.2);
}

.first-training-section h2 {
    color: #fff;
    margin-bottom: 8px;
    font-size: 1.8rem;
}

.first-training-subtitle {
    color: #ccc;
    font-size: 1rem;
    margin-bottom: 30px;
}

.gear-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.gear-card {
    background: #111;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 25px 20px;
    width: 100%;
    max-width: 260px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.gear-card:hover {
    transform: translateY(-5px);
    border-color: #d40000;
}

.gear-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px auto;
    color: #d40000; /* Klupska crvena boja */
}

.gear-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.5));
}

.gear-card h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.gear-card p {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}