/*
Theme Name: Trelleborgs Muay Thai
Theme URI: https://trelleborgsmuaythai.se
Author: Custom Theme
Description: Enkel och modern WordPress-tema för Trelleborgs Muay Thai. Inspirerad av bold martial arts design med orange och svart.
Version: 1.0
Text Domain: trelleborgs-muay-thai
*/

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== COLORS ===== */
:root {
    --orange: #ff5a00;
    --orange-dark: #e04e00;
    --black: #111111;
    --dark: #1a1a1a;
    --gray: #f5f5f5;
    --white: #ffffff;
    --text: #333333;
    --bg: #ffffff;
    --bg-alt: #f5f5f5;
    --card-bg: #ffffff;
    --card-border: #eeeeee;
    --heading: #111111;
}

/* Dark mode */
body.dark-mode {
    --bg: #121212;
    --bg-alt: #1c1c1c;
    --card-bg: #1e1e1e;
    --card-border: #333333;
    --text: #e0e0e0;
    --heading: #ffffff;
    --gray: #1c1c1c;
    --white: #1e1e1e;
}

body {
    background: var(--bg);
    color: var(--text);
    transition: background 0.3s, color 0.3s;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--black);
    color: #ccc;
    font-size: 13px;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar a {
    color: #ccc;
}

.top-bar a:hover {
    color: var(--orange);
}

.top-bar-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-bar .book-btn {
    background: var(--orange);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

.top-bar .book-btn:hover {
    background: var(--orange-dark);
    color: white;
}

/* ===== HEADER ===== */
.site-header {
    background: var(--black);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.logo img {
    height: 60px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
}

.main-nav a {
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 30px;
    transition: all 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    background: white;
    color: var(--orange);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

/* ===== HERO ===== */
.hero {
    color: white;
    text-align: center;
    padding: 120px 20px 100px;
    position: relative;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Bakgrundsbilden sätts via inline style i front-page.php */
}

.hero h1 {
    font-size: clamp(2.8rem, 8vw, 5rem);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.hero .subtitle {
    font-size: 1.1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero .btn {
    display: inline-block;
    background: var(--black);
    color: white;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 15px;
    transition: all 0.2s;
}

.hero .btn:hover {
    background: #000;
    transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
.section {
    padding: 70px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 40px;
    text-transform: uppercase;
    color: var(--heading);
}

.section-title span {
    color: var(--orange);
}

/* ===== ABOUT ===== */
.about {
    background: var(--bg-alt);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.7;
}

.about-content p {
    margin-bottom: 20px;
}

/* ===== SCHEDULE ===== */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.day-card {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.day-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.day-header {
    background: var(--black);
    color: white;
    padding: 14px 20px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.day-header.highlight {
    background: var(--orange);
}

.day-body {
    padding: 18px 20px;
}

.class-item {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.class-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.class-name {
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 2px;
}

.class-time {
    font-size: 0.95rem;
    color: var(--text);
    opacity: 0.8;
}

.class-note {
    font-size: 0.85rem;
    color: var(--orange);
    font-weight: 600;
    margin-top: 3px;
}

.badge {
    display: inline-block;
    background: var(--orange);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-right: 6px;
}

/* ===== LEVELS ===== */
.levels {
    background: var(--black);
    color: white;
}

.levels .section-title {
    color: white;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.level-card {
    background: #1f1f1f;
    border-radius: 12px;
    padding: 28px;
    border-left: 4px solid var(--orange);
}

body:not(.dark-mode) .level-card {
    background: #1a1a1a;
}

.level-card h3 {
    color: var(--orange);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.level-card p {
    color: #ccc;
    font-size: 0.95rem;
}

/* ===== PRICES ===== */
.prices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.price-card {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.2s;
}

.price-card:hover {
    border-color: var(--orange);
    transform: translateY(-5px);
}

.price-card.featured {
    border-color: var(--orange);
    background: var(--card-bg);
    position: relative;
}

body:not(.dark-mode) .price-card.featured {
    background: #fff8f5;
}

.price-card.featured::before {
    content: "POPULÄR";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--orange);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
}

.price-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.price-amount {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--orange);
    line-height: 1;
    margin-bottom: 4px;
}

.price-period {
    color: var(--text);
    opacity: 0.7;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.price-note {
    font-size: 0.9rem;
    color: var(--text);
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--card-border);
}

.member-fee {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1rem;
}

.member-fee strong {
    color: var(--orange);
}

.payment-note {
    text-align: center;
    margin-top: 20px;
    background: rgba(255, 90, 0, 0.12);
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--orange);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== CONTACT ===== */
.contact {
    background: var(--bg-alt);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.contact-block h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-block p,
.contact-block a {
    margin-bottom: 8px;
    display: block;
    color: var(--text);
}

.contact-block a:hover {
    color: var(--orange);
}

.contact-block .phone {
    font-size: 1.15rem;
    font-weight: 700;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--black);
    color: #aaa;
    padding: 50px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 16px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p,
.footer-col a {
    color: #aaa;
    margin-bottom: 8px;
    display: block;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--orange);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 25px;
    text-align: center;
    font-size: 0.9rem;
}

.footer-logo {
    height: 50px;
    margin-bottom: 15px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .schedule-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Top bar */
    .top-bar {
        font-size: 12px;
        padding: 10px 0;
    }

    .top-bar .container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .top-bar-left {
        line-height: 1.5;
    }

    /* Header */
    .header-inner {
        padding: 10px 0;
        gap: 10px;
    }

    .logo img {
        height: 48px;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 28px;
        cursor: pointer;
        padding: 4px 8px;
        line-height: 1;
    }

    .theme-toggle {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 18px;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--black);
        padding: 15px 20px 25px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 4px;
    }

    .main-nav a {
        display: block;
        padding: 14px 18px;
        font-size: 16px;
        border-radius: 8px;
    }

    /* Hero */
    .hero {
        padding: 80px 20px 70px;
        min-height: 420px;
    }

    .hero h1 {
        font-size: 2.6rem;
        letter-spacing: -0.5px;
    }

    .hero .subtitle {
        font-size: 0.95rem;
        letter-spacing: 3px;
        margin-bottom: 20px;
    }

    .hero .btn {
        padding: 13px 30px;
        font-size: 14px;
    }

    /* Sections */
    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.7rem;
        margin-bottom: 30px;
    }

    /* About */
    .about-content {
        font-size: 1.05rem;
    }

    /* Schedule */
    .schedule-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .day-header {
        padding: 12px 16px;
        font-size: 1rem;
    }

    .day-body {
        padding: 16px;
    }

    /* Levels */
    .levels-grid {
        grid-template-columns: 1fr;
    }

    /* Prices */
    .prices-grid {
        grid-template-columns: 1fr;
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
    }

    .price-amount {
        font-size: 2.2rem;
    }

    .member-fee {
        font-size: 1.05rem;
    }

    .payment-note {
        font-size: 0.95rem;
        padding: 12px 16px;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .contact-block .phone {
        font-size: 1.2rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 15px;
    }

    .footer-bottom {
        font-size: 0.85rem;
    }
}

/* Extra small phones */
@media (max-width: 480px) {
    .hero {
        padding: 70px 16px 60px;
        min-height: 380px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem !important;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 16px;
    }

    .top-bar-left {
        font-size: 11px;
    }
}
/* ===== DAY / NIGHT TOGGLE ===== */
.theme-toggle {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.4);
    color: white;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s;
    padding: 0;
    line-height: 1;
    z-index: 100;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.theme-toggle:hover,
.theme-toggle:active {
    background: rgba(255,255,255,0.2);
    border-color: var(--orange);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    display: none;
    pointer-events: none;
}

body:not(.dark-mode) .theme-toggle .icon-moon {
    display: inline !important;
}

body.dark-mode .theme-toggle .icon-sun {
    display: inline !important;
}

/* Dark mode adjustments */
body.dark-mode .day-card {
    box-shadow: none;
}

body.dark-mode .price-card.featured {
    background: #2a1a0f;
}

body.dark-mode .class-item {
    border-bottom-color: #333;
}

body.dark-mode .top-bar {
    background: #0a0a0a;
}

body.dark-mode .site-header {
    background: #0a0a0a;
}

/* ===== NEWS / NYHETER ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.news-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    font-size: 0.85rem;
    color: var(--orange);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.news-title a {
    color: var(--heading);
}

.news-title a:hover {
    color: var(--orange);
}

.news-excerpt {
    font-size: 0.95rem;
    color: var(--text);
    opacity: 0.85;
    margin-bottom: 16px;
    flex: 1;
}

.news-readmore {
    color: var(--orange);
    font-weight: 700;
    font-size: 0.95rem;
}

.news-readmore:hover {
    text-decoration: underline;
}

/* Single post */
.single-post {
    max-width: 800px;
    margin: 0 auto;
}

.single-meta {
    color: var(--orange);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.single-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--heading);
    margin-bottom: 25px;
    line-height: 1.2;
}

.single-featured {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.single-featured img {
    width: 100%;
    height: auto;
}

.single-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
}

.single-content p {
    margin-bottom: 1.2em;
}

.single-content h2,
.single-content h3 {
    color: var(--heading);
    margin: 1.5em 0 0.6em;
}

.btn-back {
    display: inline-block;
    background: var(--black);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-back:hover {
    background: var(--orange);
    color: white;
}

body.dark-mode .btn-back {
    background: #333;
}

body.dark-mode .btn-back:hover {
    background: var(--orange);
}

/* Pagination */
.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text);
    font-weight: 600;
}

.pagination .current {
    background: var(--orange);
    color: white;
    border-color: var(--orange);
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .single-title {
        font-size: 1.7rem;
    }
}

/* ===== SHARE BUTTONS ===== */
.share-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid var(--card-border);
}

.share-label {
    font-weight: 700;
    color: var(--heading);
    margin-right: 6px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: white;
}

.share-facebook {
    background: #1877f2;
}

.share-facebook:hover {
    background: #0d65d9;
    color: white;
}

.share-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.share-instagram:hover {
    opacity: 0.9;
    color: white;
}

.share-copy {
    background: var(--black);
    color: white;
}

body.dark-mode .share-copy {
    background: #333;
}

.share-copy:hover {
    background: var(--orange);
    color: white;
}

.copy-feedback {
    margin-top: 12px;
    padding: 10px 16px;
    background: rgba(255, 90, 0, 0.15);
    color: var(--orange);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

@media (max-width: 480px) {
    .share-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
}
