/* BODY */

body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    padding-top: 120px;
    background-color: #262626;
    color: #e0e0e0;
}


/* HEADER */

header {
    background-image: url('/assets/cover_727.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    width: 100%;
}

header h1 {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}


header a { text-decoration: none; color: white; transition: color 0.3s; }
header a:hover { color: #d4e9ff; }

/* FILTER BAR */


#title-filter {
    background-color: #333;
    color: rgb(187, 181, 181);
    border: 1px solid #555;
    border-radius: 10px; 
   padding: 8px 12px;
    font-size: 1rem;

}


.filter-bar {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 5px;
    z-index: 1001;
    display: flex;
    gap: 15px;
}


.filter-btn {
    border: none;
    padding: 10px 10px;
    cursor: pointer;
    background-color: #2a2a2a;
    font-weight: bold;
    font-size: 0.85rem;
    color: #e0e0e0;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}

.filter-btn:hover { background-color: #3d5aff; color: white; }
.filter-btn.active { background-color: #5a72ff; color: white; }

/* CONTENT */
.content { padding-top: 75px; padding-bottom: 80px; }
.book-card { margin-bottom: 20px; }
.card {
    background-color: #333;
    color: #e0e0e0;
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 12px rgba(0,0,0,0.7); }
.card .card-subtitle { color: #d0d0d0 !important; }

/* SORT BAR */
footer {
    background-color: #2b2b2b;
    color: white;
    text-align: center;
    padding: 15px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
}
.sort-bar { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sort-row { display: flex; gap: 10px; }
.sort-btn {
    border: none;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    background-color: #2a2a2a;
    color: #e0e0e0;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}
.sort-btn:hover { background-color: #3d5aff; color: white; }

/* BOOK IMAGES */
.book-image {
    width: 50%;
    height: 100%;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 10px;
    transition: transform 0.2s;
}
.book-image:hover { transform: scale(1.03); }

.grouped-book-card {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-start;
}
.grouped-book-image {
    width: auto;
    height: 145px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.2s;
}
.grouped-book-image:hover { transform: scale(1.03); }

/* ALPHABET NAV */

#alphabet-nav {
    position: fixed;
    top: 105px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    z-index: 1002;
}

#alphabet-nav span {
    cursor: pointer;
    font-weight: bold;
    font-size: 11px;
    color: #e0e0e0;
    background-color: rgba(100,100,100,0.25);
    padding: 1px 3px;
    border-radius: 3px;
    transition: all 0.2s ease;
}
#alphabet-nav span:hover { color: white; background-color: rgba(150,150,150,0.5); }

/* FAVORITE & STATS ICONS */
#favorite-link, #stats-icon {
    position: fixed;
    bottom: 50px;
    font-size: 1.4rem;
    text-decoration: none;
    background-color: rgba(0,0,0,0.1);
    color: #000;
    padding: 6px 8px;
    border-radius: 50%;
    transition: background-color 0.2s, transform 0.2s;
    z-index: 1003;
    display: flex;
    align-items: center;
    justify-content: center;
}
#favorite-link:hover, #stats-icon:hover { background-color: rgba(0,0,0,0.2); transform: scale(1.1); }
#favorite-link { left: 10px; }
#stats-icon { right: 10px; }


/* Ramar för kompletta serier */
.complete-series-card {
    max-width: 100%;      /* eller 70–80% beroende på design */
    margin: 0 auto;        /* centrerar kortet */
    border-width: 4px;
    border-style: solid;
    border-color: gold;    /* ändras till grön om serien är läst */
    padding: 5px;
    box-sizing: border-box;
    border-radius: 12px;   /* gör ramen rundad */
    overflow: hidden;
}


/* Gul ram för Owned */
.owned-series {
    border-color: gold;
}

/* Grön ram för Read */
.read-series {
    border-color: #9EE89E;
}


#favorite-link {
    position: fixed;
    bottom: 50px;
    left: 10px;                  /* Vänster sida */
    font-size: 1.4rem;           /* liten storlek */
    text-decoration: none;
    background-color: rgba(0,0,0,0.1); /* lätt tonad bakgrund */
    color: #000;                 /* svart ikon */
    padding: 6px 8px;
    border-radius: 50%;          /* rund */
    transition: background-color 0.2s, transform 0.2s;
    z-index: 1003;
    display: flex;
    align-items: center;
    justify-content: center;
}
#favorite-link:hover {
    background-color: rgba(0,0,0,0.2);
    transform: scale(1.1);
}


#stats-icon {
    position: fixed;
    bottom: 50px;
    right: 10px;
    font-size: 1.2rem;           /* Liten storlek */
    text-decoration: none;
    background-color: rgba(0,0,0,0.1); /* Lätt tonad bakgrund */
    color: #000;                 /* Svart ikon */
    padding: 6px 8px;
    border-radius: 75%;          /* Rund */
    transition: background-color 0.2s, transform 0.2s;
    z-index: 1003;
    display: flex;
    align-items: center;
    justify-content: center;
}

#about-icon {
    position: fixed;
    bottom: 15px;
    right: 10px;
    font-size: 1.2rem;           /* Liten storlek */
    text-decoration: none;
    background-color: rgba(0,0,0,0.1); /* Lätt tonad bakgrund */
    color: #000;                 /* Svart ikon */
    padding: 6px 8px;
    border-radius: 75%;          /* Rund */
    transition: background-color 0.2s, transform 0.2s;
    z-index: 1003;
    display: flex;
    align-items: center;
    justify-content: center;
}

#stats-icon:hover {
    background-color: rgba(0,0,0,0.2);
    transform: scale(1.1);
}

#about-icon:hover {
    background-color: rgba(0,0,0,0.2);
    transform: scale(1.1);
}
