/* =========================================================
   Filmflex 2.0 - mjuk modern grundstil
   Fil: /public_html/assets/css/filmflex.css
========================================================= */


/* =========================
   BODY / GLOBAL
========================= */

* {
    box-sizing: border-box;
}

body {
    background: #f5f3ef;
    color: #263238;
    font-family: "Segoe UI", Arial, sans-serif;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
}

a {
    color: #d86a43;
    text-decoration: none;
    transition: 0.2s ease;
}

a:hover {
    color: #ff7b54;
}


/* =========================
   TOPP / HEADER / MENY
========================= */

.topbar,
.header,
.main-header {
    background: linear-gradient(135deg, #111827, #1e293b);
    border-bottom: 1px solid #334155;
    padding: 22px 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.topbar a,
.header a,
.main-header a,
nav a {
    color: #fff;
    margin: 0 14px;
    font-size: 15px;
    font-weight: 500;
}

.logo-title {
    color: rgba(255,255,255,0.45);
    font-size: 56px;
    font-weight: 800;
    letter-spacing: 2px;
}


/* =========================
   CONTAINER
========================= */

.container,
.page-container,
.wrapper {
    width: 1250px;
    max-width: 95%;
    margin: 32px auto;
}


/* =========================
   KORT / BOXAR
========================= */

.card,
.box,
.panel,
.movie-box,
.info-box {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    border: 1px solid #ececec;
    padding: 18px;
    margin-bottom: 22px;
    transition: 0.25s ease;
}

.card:hover,
.movie-box:hover,
.info-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}


/* =========================
   FILMSIDA
========================= */

.movie-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.movie-main {
    flex: 1;
}

.movie-side {
    width: 430px;
}

.movie-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: #263238;
}

.movie-description {
    line-height: 1.6;
    color: #546e7a;
    font-size: 15px;
}

.movie-poster {
    width: 182px;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}


/* =========================
   FILMINFO
========================= */

.movie-info {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 18px;
    align-items: start;
}

.movie-info-list {
    width: 100%;
}

.movie-info-row {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f1;
    color: #455a64;
    font-size: 15px;
}

.movie-info-label {
    min-width: 120px;
    color: #78909c;
    font-weight: 600;
}

.movie-info-value {
    color: #263238;
}

.movie-info-value.blue {
    color: #3b82c4;
}

.movie-info-value.red {
    color: #d95746;
}

.movie-info-value.green {
    color: #2eb85c;
}

.movie-info-value.pink {
    color: #ca3cb9;
}

.movie-info-value.gold {
    color: #c9902f;
}


/* =========================
   GENRE-KNAPPAR
========================= */

.genre-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.genre-badge,
.genre-button {
    display: inline-block;
    background: linear-gradient(135deg, #455a64, #607d8b);
    color: white;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}


/* =========================
   BETYG
========================= */

.rating-badge,
.rating-pill {
    background: linear-gradient(135deg, #ffb347, #ff7b54);
    border-radius: 14px;
    color: white;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: bold;
    box-shadow: 0 5px 14px rgba(255,123,84,0.25);
}

.rating-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
    color: #28717c;
}

.rating-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 28px;
}


/* =========================
   YOUTUBE / TRAILER
========================= */

.trailer-box iframe,
.video-box iframe {
    width: 100%;
    height: 420px;
    border: none;
    border-radius: 18px;
    overflow: hidden;
    background: #222;
}


/* =========================
   STARTSIDA - SENAST TILLAGDA
========================= */

.section-title {
    font-size: 24px;
    margin: 0 0 18px;
    color: #263238;
}

.latest-movies {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 18px;
}

.latest-movie-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: 0.25s ease;
    border: 1px solid #eee;
}

.latest-movie-card:hover {
    transform: scale(1.03);
}

.latest-movie-card img {
    width: 100%;
    display: block;
}

.latest-movie-card-title {
    padding: 12px;
    font-weight: 700;
    color: #263238;
}


/* =========================
   TOPPLISTA FILMFLEX-BETYG
========================= */

.toplist-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.toplist-title {
    font-weight: 600;
    color: #263238;
}

.toplist-rating {
    font-weight: 800;
    color: #df6b43;
}


/* =========================
   FORMULÄR / KNAPPAR
========================= */

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    background: #fff;
    color: #263238;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #df7b52;
    box-shadow: 0 0 0 3px rgba(223,123,82,0.15);
}

button,
.button,
.btn {
    background: linear-gradient(135deg, #d45d36, #df7b52);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 11px 18px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

button:hover,
.button:hover,
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}


/* =========================
   RESPONSIVE
========================= */

@media(max-width: 900px) {
    .movie-layout {
        flex-direction: column;
    }

    .movie-side {
        width: 100%;
    }

    .movie-info {
        grid-template-columns: 1fr;
    }

    .rating-grid {
        grid-template-columns: 1fr;
    }

    .logo-title {
        font-size: 38px;
    }
}
