/* RESET + BASICS */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --primary-bg: #000;
  --secondary-bg: #050505;
  --text-color: #e7e7e7;
  --accent: #ecd2ac;
  --gold: #fff1de;
  --gold-light: #e4c8a1;
  --border-color: #222;
  --border-light: #111;
  --hover-bg: rgba(0, 0, 0, 0.7);
  --overlay: rgba(0, 0, 0, 0.7);
  --font-body: "Garamond", "EB Garamond", "Times New Roman", serif;
  --font-heading: "Copperplate", "Copperplate Gothic Bold", "Copperplate Gothic", "Cinzel", serif;
  --font-size-base: clamp(1rem, 2.5vw, 1.2rem);
  --font-size-h1: clamp(1.5rem, 4vw, 2rem);
  --font-size-h2: clamp(1.2rem, 3vw, 1.6rem);
  --font-size-h3: clamp(1rem, 2.5vw, 1.4rem);
}

body {
    font-family: var(--font-body);
    background: var(--primary-bg) url('img/DSC02269.JPG') center/cover fixed;
    color: var(--text-color);
    line-height: 1.75;
    letter-spacing: 0.2px;
    font-size: var(--font-size-base);
}
img { display: block; max-width: 100%; }

h1, h2, h3 {
    font-family: var(--font-heading);
    line-height: 1.4;
    color: var(--gold);
    font-weight: 400;
    text-transform: uppercase;
}
h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); margin-bottom: 20px; }
h3 { font-size: var(--font-size-h3); margin-bottom: 20px; }
p { font-size: var(--font-size-base); margin-bottom: 1rem; }
ul { padding-left: 20px; }

section {
    padding: 60px 30px 80px;
    margin: auto;
}
section .section-content {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease;
}
section.visible .section-content {
    opacity: 1;
    transform: translateY(0);
}

.section-content {
    max-width: 1100px;
    margin: auto;
}

/* STICKY HEADER */
header {
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    z-index: 50;
    padding: 12px 20px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header nav a {
    margin-right: 20px;
    color: #bbb;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
}
header nav a:hover { color: #fff; }

/* HAMBURGER MENU */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--accent);
    margin: 3px 0;
    transition: 0.3s;
}

/* MOBILE MENU OVERLAY */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.mobile-menu-overlay.active {
    display: flex;
}
.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--accent);
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
}
.mobile-nav {
    text-align: center;
}
.mobile-nav a {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.5rem;
    margin: 20px 0;
    font-family: var(--font-heading);
    text-transform: uppercase;
}
.mobile-nav a:hover {
    color: var(--accent);
}

/* HERO (with parallax) */
.hero {
    text-align: center;
    padding: 60px 30px;
    position: relative;
    background: var(--secondary-bg) url('img/bg.jpg') center/cover fixed;
    border-bottom: 1px solid var(--border-color);
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
}
.hero .overlay {
    position: absolute;
    inset: 0;
    background: var(--overlay);
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
}

#cover img {
    width: 330px;
    margin: 20px auto;
    border-radius: 0 26px 26px 0;
    box-shadow: 0 0 50px rgba(255,255,255,0.08);
    border: 1px solid #1a1a1a50;
}
.hero-description {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero h1 {
    font-size: 1.2rem;
    margin: 20px 0 10px;
}
.hero .stars {
    color: var(--gold-light);
    font-size: 24px;
    margin-bottom: 15px;
}

.hero .awards {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.hero .awards img {
    width: 70px;
    height: auto;
    transition: transform 0.3s ease;
}

.hero .awards img:hover {
    transform: scale(1.05);
}

/* BUTTON */
.btn {
    background: rgba(0, 0, 0, 0.6);
    padding: 15px 34px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--accent);
    font-weight: 400;
    letter-spacing: 0.5px;
    display: inline-block;
    transition: 0.25s;
    margin: 20px auto;
    font-family: var(--font-heading);
    text-align: center;
}
.btn:hover {
    background: var(--hover-bg);
    transform: translateY(-2px);
}



/* Responsive YouTube embed */
#video {
    text-align: center;
    padding: 50px 50px;
    background: var(--secondary-bg);
    color: #888;
    border-bottom: 1px solid var(--border-color);
}
#video h2{
    font-size: 1.2rem;
}
.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(255,255,255,0.07);
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

main {
  position: relative;
  background: url('img/DSC02269.JPG') center/cover;
  border-bottom: 1px solid var(--border-color);
  z-index: 0;
}

main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('img/DSC02269.JPG') center/cover;
  filter: grayscale(50%);
  z-index: -1;
}


#about, #author, #reviews {
    background: rgba(0, 0, 0, 0.8);
}

#about {
    padding-bottom: 0;
}
#about .section-content, #author .section-content  {
    max-width: 900px;
}

/* AUTHOR */
.author-box {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: flex-start;
    
}
.author-box img {
    width: 180px;
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(255,255,255,0.06);
    flex-shrink: 0;
    float: left;
    margin-right: 30px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .author-box {
        display: block;
    }
    .author-box img  {
        width: 130px;
    }
    /*
    .author-box img {
        float: none;
        margin-right: 0;
        margin-bottom: 20px;
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: 150px;
    }
    .author-box p {
        text-align: center;
        clear: both;
    }*/
}

/* REVIEWS */
#reviews {
    background: var(--secondary-bg);
}
blockquote {
    padding-left: 15px;
    border-left: 3px solid #444;
    font-style: italic;
    margin: 0 5% 20px;
}
blockquote a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.2s ease;
}
blockquote a:hover {
    color: var(--accent);
}

/* PURCHASE */
#purchase {
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.7);
}
.option {
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 12px;
    transition: 0.25s;
}
.option:hover {
    border-color: #444;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 50px 20px;
    background: var(--secondary-bg);
    color: #888;
    border-top: 1px solid var(--border-color);
}
footer a {
    color: #bbb;
    text-decoration: none;
    margin: 0 10px;
}
footer a:hover { color: #fff; }

/* STICKY BUY BUTTON (mobile only) */
.sticky-buy {
    color: #ecd2ac;
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.sticky-buy.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 768px) {
    h2 { font-size: 1.4rem; }
    /*p, ul { font-size: 1rem; }*/
    #video h2{
        font-size: 0.9rem;
    }
    .sticky-buy { display: block; }
    .hero .awards img {
        width: 50px;
    }
    header nav {
        display: none;
    }
    .hamburger {
        display: flex;
    }
}

/* GRIDS */
.grid { display: grid; gap: 40px; vertical-align: middle; }
@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    #about .grid { grid-template-columns: 7fr 3fr }
}
.book-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  /*max-width: 300px;*/
}

.book-meta li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1rem;
}

.book-meta li:last-child {
  border-bottom: none;
}

.book-meta strong {
  font-weight: 600;
  color: #aaa;
  margin-right: 10px;
}

.tabs {
    display: flex;
    border-bottom: 2px solid #333;
    margin-bottom: 0px;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 12px 24px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #aaa;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s, border-bottom-color 0.2s;
    border-bottom: 3px solid transparent;
    font-family: var(--font-heading);
    font-weight: 400;
    text-transform: uppercase;
}

.tab:hover {
    background: rgba(255, 255, 255, 0.021);
}

.tab.active {
    color: var(--gold);
    background: rgba(255, 255, 255, 0.021);
    border-bottom-color: #d1c6b6;
}

.tab-content {
  
}

.content-panel {
    display: none;
    flex-direction: column;
    gap: 5px;
}

.content-panel.active {
    display: flex;
}

.content-panel h3 {
    text-align: center;
    margin: 2rem 0 0.5rem;
}

.content-panel a {
    text-decoration: none;
    transition: background 0.2s;
}

.content-panel a:hover {
    background: #33333333;
}
@media (max-width: 480px) {
    .tabs {
        flex-direction: column;
    }

    .tab {
        flex: none;        /* više nije 1fr */
        width: 100%;       /* svaki zauzima punu širinu */
        border-bottom: 3px solid transparent; /* ostaje za aktivnu liniju */
    }

    .tab + .tab {
        margin-top: 8px;   /* mali razmak između tabova */
    }
}
/* GRID ZA AMAZON LINKOVE */
.store-grid {
    display: grid;
    gap: 5px 15px;
    grid-template-columns: 1fr;
}

/* tablet */
@media (min-width: 480px) {
    .store-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* desktop */
@media (min-width: 900px) {
    .store-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* WRAPPER */
.gr-wrapper {
  height: 300px;                 /* desktop start */
  overflow: hidden;              /* nikad ne skroluje */
  position: relative;
  border-radius: 8px;
  border: 1px solid #555;
  background-color: #111;
  padding: 12px;
  box-sizing: border-box;
  transition: height 0.45s ease;
}

/* IFRAME zauzima sav prostor unutar wrapper-a */
#goodreads_iframe {
  width: 100%;
  height: 100%;
  border: none;
  background-color: #111;
  display: block;
  filter: brightness(1.05) saturate(0.95);
}

/* FADE GRADIJENT */
.fade-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(to bottom, rgba(17,17,17,0) 0%, rgba(17,17,17,1) 100%);
  pointer-events: none;
  border-radius: 0 0 8px 8px;
  transition: opacity 0.2s ease;
}

/* EXPANDED WRAPPER */
.gr-wrapper.expanded .fade-bottom {
  opacity: 0;  /* fade nestaje kad je expanded */
}

/* BUTTON */
.show-more-btn {
  margin-top: 8px;
  padding: 8px 16px;
  background-color: #222;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.show-more-btn:hover {
  background-color: #444;
}

/* DESKTOP EXPANDED */
.gr-wrapper.expanded {
  height: 600px;
}

/* MOBILE */
@media (max-width: 768px) {
  .gr-wrapper {
    height: 500px;        /* mobile start expanded */
  }

  .gr-wrapper.expanded {
    height: 66vh;         /* +10% više */
  }
}

.instagram-link {
  display: inline-block;
 
  transition: transform 0.3s;
}

.instagram-link img {
  width: 40px;
  height: 40px;
  display: block;
  filter: grayscale(100%) brightness(120%); /* prava crno-bela */
  transition: transform 0.3s, filter 0.3s;
}

.instagram-link:hover img {
  transform: scale(1.1);
  filter: grayscale(100%) brightness(150%); /* suptilan hover */
}

#gr_author_widget_1766325504 .gr_book_image,
#gr_author_widget_1766325504 .gr_book_title {
  display: none !important;
}

#gr_author_widget_1766325504 .gr_review_stats {
  display: block;
  color: var(--text-color);        /* svetli tekst za crnu temu */

  background-color: var(--secondary-bg);
  padding: 8px 12px;
  border-radius: 6px;
  width: fit-content;
}
