/*** Spinner Start ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .8s ease-out, visibility 0s linear .0s;
    visibility: visible;
    opacity: 1;
}
/*** Spinner End ***/

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    z-index: 99;
}

/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square { width: 32px; height: 32px; }
.btn-sm-square { width: 34px; height: 34px; }
.btn-md-square { width: 44px; height: 44px; }
.btn-lg-square { width: 56px; height: 56px; }

.btn-square, .btn-sm-square, .btn-md-square, .btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn-primary-outline-0 {
    color: var(--bs-white) !important;
    border: 1px solid var(--bs-primary);
}

.btn-light-outline-0 {
    color: var(--bs-primary) !important;
    border: 1px solid var(--bs-light);
}

.btn-primary-outline-0:hover {
    filter: brightness(85%);
    color: var(--bs-white) !important;
    border: 1px solid var(--bs-primary);
}

.btn-light-outline-0:hover {
    filter: brightness(85%); 
    color: var(--bs-white) !important;
    border: 1px solid var(--bs-secondary);
}

.img-border {
    border-color: var(--bs-secondary);
    border-style: double;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Great Vibes', cursive;
    font-weight: 700;
}

/*Language modal*/
.language-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.language-modal-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 22px;
    padding: 34px 26px;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
}

.language-modal-card h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 54px;
    color: var(--bs-primary);
    margin-bottom: 5px;
}

.language-modal-card p {
    color: #666;
    margin-bottom: 24px;
}

.language-options {
    display: grid;
    gap: 12px;
}

.language-options button {
    border: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

.language-options button span {
    font-size: 28px;
}

.language-options button:hover {
    background: #fff3f3;
    border-color: var(--bs-primary);
}

.language-btn {
    min-width: 44px;
    height: 44px;
    font-size: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/*Language modal*/

/*** Navbar Start ***/

.sticky-top {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--bs-white);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

/* Da anchor linkovi ne odu ispod navbar-a */
#weddingHome,
#weddingAbout,
#weddingCountdown,
#weddingGallery {
    scroll-margin-top: 90px;
}

.navbar .navbar-nav .nav-link {
    padding: 10px 15px;
    font-family: 'Petit Formal Script', cursive;
    font-weight: 600;
    font-size: 16px;
    transition: .5s;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active,
.sticky-top.bg-white .navbar .navbar-nav .nav-link:hover,
.sticky-top.bg-white .navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

@media (min-width: 1200px) {
    .navbar .navbar-collapse .border-top { border-top: none !important; }
}
/*** Navbar End ***/

/*** Carousel Start ***/
.carousel-item { position: relative; min-height: 100vh; }
.carousel-item img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.carousel-item .carousel-caption {
    width: 100%; height: 100%; position: absolute; top: 0; left: 0;
    display: flex; align-items: center; justify-content: end; text-align: center;
    background: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, 0.4));
}
.carousel-control-prev, .carousel-control-next { opacity: 0; }
.carousel-control-prev .carousel-control-prev-icon,
.carousel-control-next .carousel-control-next-icon { background: transparent; }

#carouselId .carousel-indicators { padding-bottom: 30px; }
#carouselId .carousel-indicators li {
    border: 10px solid var(--bs-white); border-right: 5px solid var(--bs-white); border-left: 5px solid var(--bs-white);
    margin-right: 10px; transition: 0.5s;
}
#carouselId .carousel-indicators li.active {
    background: var(--bs-primary); border-color: var(--bs-primary);
    border-right: 15px solid var(--bs-primary); border-left: 15px solid var(--bs-primary);
}
/*** Carousel End ***/

/* ========================================
   SVADBENA DUGMAD
======================================== */
.wedding-btn {
    width: 280px; height: 70px; display: flex; align-items: center; justify-content: center;
    padding: 0 !important; font-size: 20px; font-weight: 600; border-radius: 12px; transition: all 0.3s ease;
}
.wedding-btn:hover { transform: translateY(-2px); }

@media (max-width: 576px) {
    .wedding-btn { width: 220px; height: 60px; font-size: 18px; }
}

/*** Wedding Story Start ***/
.story .story-timeline, .story .story-timeline .row { position: relative; }
.story .story-timeline::before, .story .story-timeline::after {
    position: absolute; content: ""; width: 15px; height: 15px; background: var(--bs-secondary);
    border-radius: 10px; left: 50%; top: -7px; transform: translateX(-50%);
}
.story .story-timeline::after { top: auto; bottom: -7px; }
.story .story-timeline .row::after {
    position: absolute; content: "\f004"; font-family: "Font Awesome 5 Free"; font-weight: 900;
    font-size: 30px; color: var(--bs-secondary); top: 50%; left: 50%; transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
    .story .story-timeline::before, .story .story-timeline::after, .story .story-timeline .row::after { display: none; }
    
    /* FIX ZA MOBILNI */
    #weddingAbout .position-absolute { display: none !important; }
    #weddingAbout .d-flex { flex-direction: column !important; text-align: center !important; }
    #weddingAbout .pe-4, #weddingAbout .ps-4 { padding: 0 !important; margin-top: 15px; }
    .fa-heart { font-size: 3rem !important; margin: 20px 0; }
    .img-border { max-width: 250px; margin: 0 auto; }
}

#weddingAbout { overflow: hidden; }
/*** Wedding Story End ***/

/*** Wedding Date Start ***/
.wedding-date-bg .wedding-date {
    width: 100%; position: relative; overflow: hidden; background-size: cover;
    background: linear-gradient(rgba(255,255,255,0.75), rgba(255,255,255,0.75)), url(../img/wedding-date-bg.jpg) center center;
}
/*** Wedding Date End ***/

/* COUNTDOWN */
.countdown-wrapper { display: flex; justify-content: center; align-items: center; gap: 40px; margin-bottom: 40px; }
.countdown-box { text-align: center; min-width: 90px; }
.countdown-box div { font-size: 48px; font-weight: 700; line-height: 1; color: #222; }
.countdown-box span { display: block; margin-top: 10px; font-size: 18px; color: #444; }

@media (max-width: 992px) {
    .countdown-wrapper { gap: 25px; }
    .countdown-box { min-width: 70px; }
    .countdown-box div { font-size: 36px; }
}

@media (max-width: 576px) {
    .countdown-wrapper { gap: 10px; }
    .countdown-box { min-width: 55px; }
    .countdown-box div { font-size: 26px; }
    .wedding-date-content h1 { font-size: 2.5rem !important; }
}

/*** Gallery Start ***/

/* Glavni grid za javnu galeriju */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

/* Svaki element galerije: slika ili video thumbnail */
.gallery-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

/* Link unutar galerije zauzima celu kocku */
.gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Slike i video thumbnail-i se prikazuju kao kvadrat */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s ease;
}

/* Blagi zoom efekat na hover */
.gallery-item a:hover img {
    transform: scale(1.05);
}

/* Play oznaka za video thumbnail */
.video-play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    width: 54px;
    height: 54px;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.65);
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 24px;
    line-height: 1;
    pointer-events: none;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/*Like dugme*/
.photo-like-badge {
    position: absolute;
    right: 8px;
    bottom: 8px;

    border: none;
    border-radius: 999px;

    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;

    padding: 6px 10px;

    font-size: 13px;
    font-weight: 600;

    z-index: 20;

    cursor: pointer;
    backdrop-filter: blur(6px);
}

.photo-like-badge:hover {
    background: rgba(0, 0, 0, 0.88);
}

.photo-like-badge.liked {
    background: rgba(220, 53, 69, 0.9);
}
/*Like dugme*/

/* Na telefonu malo manja play ikonica */
@media (max-width: 576px) {
    .video-play-badge {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
}

/* Broj kolona na tabletima */
@media (min-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Broj kolona na desktopu */
@media (min-width: 1200px) {
    .photo-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/*** Gallery End ***/

/*Upload slika progres*/
#uploadStatusBox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.upload-status-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 18px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

#uploadStatusText {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin-bottom: 18px;
}

.upload-progress {
    width: 100%;
    height: 12px;
    background: #e9ecef;
    border-radius: 999px;
    overflow: hidden;
}

#uploadProgressBar {
    height: 100%;
    width: 0%;
    background: var(--bs-primary);
    border-radius: 999px;
    transition: width 0.25s ease;
}

/*Upload slika progres*/

/*Upravo vencani*/
.newly-married-message {
    text-align: center;
    font-size: 72px;
    font-family: "Great Vibes", cursive;
    color: #2f2f2f;
    padding: 40px 20px;
}

@media (max-width: 768px) {
    .newly-married-message {
        font-size: 42px;
    }
}
/*Upravo vencani*/

/*Pop up*/
#infoPopupBox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.info-popup-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 22px;
    padding: 32px 26px;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
}

.info-popup-card h3 {
    font-family: "Great Vibes", cursive;
    font-size: 42px;
    color: #2f2f2f;
    margin-bottom: 14px;
}

.info-popup-card p {
    font-size: 17px;
    color: #444;
    margin-bottom: 24px;
}

.info-popup-card button {
    border: none;
    background: #f7a8a8;
    color: #2f2f2f;
    padding: 12px 26px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
}

.info-popup-card button:hover {
    filter: brightness(0.95);
}
/*Pop up*/


/*** Footer ***/
.footer { background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(../img/footer-bg.jpg) center center; background-size: cover; }
.footer .footer-item a.btn-link, .footer .footer-item p { line-height: 35px; font-size: 17px; color: var(--bs-light); }
.footer .footer-item a.btn-link:hover { color: var(--bs-primary); letter-spacing: 2px; }

@media (max-width: 992px) {
    .footer .text-start, .footer .text-center, .footer .text-end { text-align: center !important; }
}
/*** Footer End ***/

.copyright { border-top: 1px solid rgba(255, 255, 255, 0.08); background: var(--bs-dark) !important; }

html, body { max-width: 100%; overflow-x: hidden; margin: 0; padding: 0; }
