/* Simple Article Template Styles - Sveriges Skönhetscenter */
/* Mobile-First Approach */

/* Font loading optimization */
@font-face {
    font-display: swap;
}

/* Variables matching design system */
:root {
    --dark-solid: #161616;
    --light-solid: #fff;
    --dark300: #212121;
    --dark200: #262626;
    --light200: #b3b3b3;
    --light100: #c7c7c7;
    --green500: #10a16c;
    --red500: #ee6747;
    --orange500: #f7963e;
    
    /* Spacing - Mobile First */
    --xs: 8px;
    --s: 12px;
    --m: 16px;
    --l: 24px;
    --xl: 32px;
    --xxl: 48px;
    --xl3: 64px;
}

/* Main Layout - Mobile First */
.simple-article {
    background: var(--dark-solid);
    color: var(--light-solid);
    min-height: 100vh;
    padding: 110px 0 var(--l) 0; /* Increased for mobile navbar + banner */
    position: relative;
}

.article-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--m);
    display: block;
}

/* Desktop Layout */
@media (min-width: 1280px) {
    .simple-article {
        padding: 80px 0 var(--xxl) 0; /* Reduced for desktop navbar only */
    }
    
    .article-container {
        display: flex;
        gap: var(--xl3);
        align-items: flex-start;
    }
}

/* Table of Contents - Mobile First */

/* Mobile TOC Button */
.mobile-toc-button {
    position: fixed;
    bottom: 20px;
    left: 20px; /* Moved to left to avoid chat interface */
    width: 56px;
    height: 56px;
    background: var(--red500);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 100;
    transition: transform 0.2s ease;
}

.mobile-toc-button:active {
    transform: scale(0.95);
}

.mobile-toc-button svg {
    width: 24px;
    height: 24px;
    fill: var(--light-solid);
}

/* Mobile TOC Overlay */
.article-toc {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark200);
    border-radius: 16px 16px 0 0;
    padding: var(--l);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 200;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.article-toc.active {
    transform: translateY(0);
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--l);
}

.toc-header h3 {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--light-solid);
    margin: 0;
}

.toc-close {
    background: none;
    border: none;
    color: var(--light200);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
}

.toc-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-nav li {
    margin-bottom: var(--xs);
}

.toc-nav a {
    display: block;
    padding: var(--s) var(--m);
    color: var(--light200);
    text-decoration: none;
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    border-left: 2px solid transparent;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.toc-nav a:active {
    background: rgba(238, 103, 71, 0.2);
}

.toc-nav a.active {
    color: var(--light-solid);
    border-left-color: var(--red500);
    background: rgba(238, 103, 71, 0.1);
    font-weight: 500;
}

/* Overlay backdrop */
.toc-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 199;
}

.toc-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Desktop TOC */
@media (min-width: 1280px) {
    .mobile-toc-button,
    .toc-backdrop,
    .toc-close {
        display: none;
    }
    
    .article-toc {
        position: sticky;
        top: 140px;
        flex: 0 0 280px;
        transform: none;
        background: rgba(33, 33, 33, 0.6);
        border-radius: 8px;
        border: 1px solid rgba(199, 199, 199, 0.1);
        backdrop-filter: blur(10px);
        max-height: calc(100vh - 200px);
        box-shadow: none;
        display: block;
        z-index: 1;
    }
    
    .toc-header {
        display: block;
        margin-bottom: 0;
    }
    
    .toc-header h3 {
        margin-bottom: var(--l);
        padding-bottom: var(--s);
        border-bottom: 1px solid rgba(199, 199, 199, 0.1);
    }
    
    .toc-nav a:hover {
        color: var(--light-solid);
        border-left-color: var(--red500);
        background: rgba(238, 103, 71, 0.05);
        transform: translateX(2px);
    }
}

/* Article Content - Mobile First */
.article-content {
    flex: 1;
    max-width: 900px;
    width: 100%;
}

/* Breadcrumb Navigation - Mobile First */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--xs);
    margin-bottom: var(--l);
    font-family: 'Mulish', sans-serif;
    font-size: 12px;
    line-height: 1.5;
}

.breadcrumb a {
    color: var(--light200);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--light-solid);
}

.breadcrumb .separator {
    color: var(--light200);
    opacity: 0.5;
}

.breadcrumb .current {
    color: var(--light100);
}

@media (min-width: 768px) {
    .breadcrumb {
        font-size: 14px;
        margin-bottom: var(--xl);
    }
}

/* Article Header - Mobile First */
.article-header {
    margin-bottom: var(--xl);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: var(--s);
    margin-bottom: var(--m);
    font-family: 'Mulish', sans-serif;
    font-size: 12px;
    color: var(--light200);
    flex-wrap: wrap;
}

.article-meta span::after {
    content: '•';
    margin-left: var(--s);
    opacity: 0.5;
}

.article-meta span:last-child::after {
    display: none;
}

/* Typography - Mobile First */
.article-header h1 {
    font-family: 'Mulish', sans-serif;
    font-size: 24px;
    line-height: 32px;
    font-weight: 600;
    margin-bottom: var(--m);
    color: var(--light-solid);
}

.article-lead {
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    line-height: 22px;
    color: var(--light100);
    margin-bottom: var(--m);
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: var(--l);
}

/* Article Sections - Mobile First */
.article-section {
    margin-bottom: var(--xl);
    scroll-margin-top: 80px;
}

.article-section h2 {
    font-family: 'Mulish', sans-serif;
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
    color: var(--light-solid);
    margin-bottom: var(--m);
}

.article-section h3 {
    font-family: 'Mulish', sans-serif;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    color: var(--light-solid);
    margin-bottom: var(--s);
}

.article-section p {
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    line-height: 22px;
    color: var(--light-solid);
    margin-bottom: var(--m);
}

.article-section p:last-child {
    margin-bottom: 0;
}

/* Desktop Typography */
@media (min-width: 768px) {
    .article-header {
        margin-bottom: var(--xxl);
    }
    
    .article-meta {
        font-size: 14px;
        gap: var(--m);
    }
    
    .article-header h1 {
        font-size: 32px;
        line-height: 40px;
        font-weight: 500;
    }
    
    .article-lead {
        font-size: 16px;
        line-height: 26px;
        margin-bottom: var(--l);
    }
    
    .hero-image {
        margin-bottom: var(--xxl);
    }
    
    .article-section {
        margin-bottom: var(--xxl);
        scroll-margin-top: 140px;
    }
    
    .article-section h2 {
        font-size: 24px;
        line-height: 32px;
        font-weight: 500;
        margin-bottom: var(--l);
    }
    
    .article-section h3 {
        font-size: 18px;
        line-height: 26px;
        margin-bottom: var(--s);
    }
    
    .article-section p {
        font-size: 16px;
        line-height: 24px;
    }
}

@media (min-width: 1280px) {
    .article-header h1 {
        font-size: 40px;
        line-height: 56px;
    }
    
    .article-lead {
        font-size: 18px;
        line-height: 28px;
    }
}

/* Expert Quote - Mobile First */
.expert-quote {
    background: var(--dark300);
    border-left: 3px solid var(--green500);
    padding: var(--m);
    margin: var(--l) 0;
    border-radius: 0 8px 8px 0;
}

.expert-quote p {
    font-style: italic;
    font-size: 14px;
    line-height: 22px;
    margin-bottom: var(--s);
    color: var(--light-solid);
}

.expert-quote cite {
    display: block;
    font-size: 12px;
    color: var(--light200);
    font-style: normal;
}

@media (min-width: 768px) {
    .expert-quote {
        border-left-width: 4px;
        padding: var(--l);
        margin: var(--xxl) 0;
    }
    
    .expert-quote p {
        font-size: 18px;
        line-height: 28px;
        margin-bottom: var(--m);
    }
    
    .expert-quote cite {
        font-size: 14px;
    }
}

/* Stats Cards - Mobile First with Horizontal Scroll */
.stats-cards {
    display: flex;
    gap: var(--m);
    margin: var(--l) -var(--m);
    padding: 0 var(--m);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.stats-cards::-webkit-scrollbar {
    display: none;
}

.stat-card {
    background: var(--dark300);
    padding: var(--l);
    border-radius: 8px;
    text-align: center;
    flex: 0 0 140px;
    scroll-snap-align: center;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--green500);
    margin-bottom: var(--xs);
}

.stat-label {
    font-size: 11px;
    color: var(--light200);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .stats-cards {
        margin: var(--xxl) 0;
        padding: 0;
        overflow-x: visible;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .stat-card {
        flex: 1;
        min-width: 150px;
        max-width: 200px;
        padding: var(--xl);
    }
    
    .stat-number {
        font-size: 2.5em;
        margin-bottom: var(--s);
    }
    
    .stat-label {
        font-size: 0.9em;
        letter-spacing: 1px;
    }
}

/* Lists - Mobile First */
.article-section ul {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--m) 0;
}

.article-section ul li {
    margin-bottom: var(--s);
    padding-left: var(--xl);
    position: relative;
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    line-height: 22px;
}

.article-section ul li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: var(--green500);
    font-weight: bold;
}


@media (min-width: 768px) {
    .article-section ul li {
        font-size: 16px;
        line-height: 24px;
        margin-bottom: var(--m);
    }
}

/* Skin Types - Mobile First */
.skin-types {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--m);
    margin: var(--m) 0;
}

.skin-type {
    background: var(--dark300);
    padding: var(--m);
    border-radius: 8px;
}

.skin-type h3 {
    font-family: 'Mulish', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--light-solid);
    margin-bottom: var(--xs);
}

.skin-type p {
    font-size: 14px;
    line-height: 20px;
    color: var(--light200);
    margin: 0;
}

@media (min-width: 768px) {
    .skin-types {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--l);
        margin: var(--l) 0;
    }
    
    .skin-type {
        padding: var(--l);
    }
    
    .skin-type h3 {
        font-size: 18px;
        margin-bottom: var(--s);
    }
}

/* Treatment Grid - Mobile First */
.treatment-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--m);
    margin: var(--m) 0;
}

.treatment-card {
    background: var(--dark300);
    padding: var(--m);
    border-radius: 8px;
    border: 1px solid rgba(199, 199, 199, 0.1);
}

.treatment-card h3,
.treatment-card h4 {
    font-family: 'Mulish', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--light-solid);
    margin-bottom: var(--xs);
}

.treatment-card p {
    font-size: 14px;
    line-height: 20px;
    color: var(--light200);
    margin-bottom: var(--s);
}

.treatment-card p:last-child {
    margin-bottom: 0;
}

.treatment-card del {
    color: var(--light200);
    opacity: 0.7;
}

.treatment-card strong {
    color: var(--green500);
    font-size: 18px;
}

@media (min-width: 768px) {
    .treatment-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--l);
        margin: var(--l) 0;
    }
    
    .treatment-card {
        padding: var(--l);
    }
    
    .treatment-card h3,
    .treatment-card h4 {
        font-size: 18px;
        margin-bottom: var(--s);
    }
}

/* Tables - Mobile First */
table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--m) 0;
    font-size: 12px;
}

thead {
    background: var(--dark300);
}

th {
    padding: var(--s);
    text-align: left;
    border: 1px solid var(--dark200);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: var(--s);
    border: 1px solid var(--dark200);
    font-size: 12px;
}

tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

/* Mobile table scroll wrapper */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: var(--m) -var(--m);
    padding: 0 var(--m);
}

@media (min-width: 768px) {
    table {
        font-size: 14px;
        margin: 20px 0;
    }
    
    th {
        padding: 12px;
        font-size: 12px;
    }
    
    td {
        padding: 12px;
        font-size: 14px;
    }
    
    .table-wrapper {
        margin: 0;
        padding: 0;
    }
}

/* FAQ - Mobile First */
.faq-list {
    margin: var(--m) 0;
}

.faq-item {
    margin-bottom: var(--m);
    padding-bottom: var(--m);
    border-bottom: 1px solid rgba(199, 199, 199, 0.1);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h3 {
    font-family: 'Mulish', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--light-solid);
    margin-bottom: var(--xs);
}

.faq-item p,
.faq-item ul {
    font-size: 14px;
    line-height: 22px;
    color: var(--light200);
}

.faq-item[style*="border-left"] {
    padding-left: var(--m);
}

@media (min-width: 768px) {
    .faq-list {
        margin: var(--l) 0;
    }
    
    .faq-item {
        margin-bottom: var(--l);
        padding-bottom: var(--l);
    }
    
    .faq-item h3 {
        font-size: 18px;
        margin-bottom: var(--s);
    }
    
    .faq-item p,
    .faq-item ul {
        font-size: 16px;
        line-height: 24px;
    }
}

/* CTA Section - Mobile First */
.cta-section {
    margin: var(--xl) 0;
}

.cta-card {
    background: var(--dark300);
    padding: var(--l);
    border-radius: 8px;
    text-align: center;
}

.cta-card h2 {
    font-family: 'Mulish', sans-serif;
    font-size: 20px;
    color: var(--light-solid);
    margin-bottom: var(--m);
}

.cta-card h3 {
    font-family: 'Mulish', sans-serif;
    font-size: 16px;
    color: var(--light-solid);
    margin-top: var(--l);
    margin-bottom: var(--s);
}

.cta-card p {
    font-size: 14px;
    line-height: 22px;
    color: var(--light200);
    margin-bottom: var(--m);
}

.cta-button {
    display: inline-block;
    background: var(--green500);
    color: var(--light-solid);
    padding: 12px var(--l);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-button:active {
    transform: scale(0.98);
}

@media (min-width: 768px) {
    .cta-section {
        margin: var(--xl3) 0;
    }
    
    .cta-card {
        padding: var(--xxl);
    }
    
    .cta-card h2 {
        font-size: 24px;
    }
    
    .cta-card h3 {
        font-size: 18px;
    }
    
    .cta-card p {
        font-size: 16px;
        line-height: 24px;
        margin-bottom: var(--l);
    }
    
    .cta-button {
        padding: 14px var(--xl);
        font-size: 16px;
    }
    
    .cta-button:hover {
        background: #0d875b;
        transform: none;
    }
}

/* Author Bio - Mobile First */
.author-bio {
    background: var(--dark200);
    padding: var(--m);
    border-radius: 8px;
    margin: var(--xl) 0;
}

.author-info {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: var(--m);
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    flex-shrink: 0;
}

.author-text h3 {
    font-family: 'Mulish', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--light-solid);
    margin-bottom: var(--xs);
}

.author-title {
    font-size: 12px;
    color: var(--green500);
    margin-bottom: var(--s);
}

.author-text p {
    font-size: 14px;
    line-height: 20px;
    color: var(--light200);
    margin-bottom: var(--s);
}

.author-link {
    color: var(--green500);
    text-decoration: none;
    font-size: 14px;
}

.author-link:active {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .author-bio {
        padding: var(--l);
        margin: var(--xxl) 0;
    }
    
    .author-info {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        gap: var(--l);
    }
    
    .author-image {
        width: 80px;
        height: 80px;
    }
    
    .author-text h3 {
        font-size: 18px;
    }
    
    .author-title {
        font-size: 14px;
    }
    
    .author-link:hover {
        text-decoration: underline;
    }
}

/* Booking Buttons */
.book-btn {
    display: inline-block;
    background: var(--green500);
    color: var(--light-solid);
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.book-btn:hover {
    background: #0d875b;
}

.book-btn-card {
    display: inline-block;
    background: var(--green500);
    color: var(--light-solid);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease;
    margin-top: var(--s);
}

.book-btn-card:hover {
    background: #0d875b;
}

/* Related Articles - Mobile First */
.related-articles {
    margin-top: var(--xl);
}

.related-articles h2 {
    font-family: 'Mulish', sans-serif;
    font-size: 20px;
    color: var(--light-solid);
    margin-bottom: var(--m);
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--m);
}

.related-article {
    background: var(--dark300);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.related-article:active {
    transform: scale(0.98);
}

.related-article img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-content {
    padding: var(--m);
}

.related-content h3 {
    font-family: 'Mulish', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--light-solid);
    margin-bottom: var(--xs);
}

.related-content p {
    font-size: 14px;
    line-height: 20px;
    color: var(--light200);
    margin-bottom: var(--xs);
}

.read-time {
    font-size: 11px;
    color: var(--light200);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (min-width: 768px) {
    .related-articles {
        margin-top: var(--xl3);
    }
    
    .related-articles h2 {
        font-size: 24px;
        margin-bottom: var(--l);
    }
    
    .related-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--l);
    }
    
    .related-article:hover {
        transform: translateY(-2px);
    }
    
    .related-article img {
        height: 200px;
    }
    
    .related-content {
        padding: var(--l);
    }
    
    .related-content p {
        margin-bottom: var(--s);
    }
    
    .read-time {
        font-size: 12px;
    }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(238, 103, 71, 0.2);
    z-index: 300;
}

.scroll-progress-bar {
    height: 100%;
    background: var(--red500);
    width: 0%;
    transition: width 0.2s ease;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--dark300);
    border: 1px solid rgba(199, 199, 199, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:active {
    transform: scale(0.9);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    fill: var(--light200);
}

@media (min-width: 1280px) {
    .back-to-top {
        bottom: 20px;
    }
}

/* Aftercare Grid Styles */
.aftercare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.aftercare-do h4 {
    color: #10a16c;
}

.aftercare-dont h4 {
    color: #ee6747;
}

/* CTA Buttons Container */
.cta-buttons-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

/* Secondary CTA Button */
.cta-button-secondary {
    background: transparent !important;
    border: 2px solid #ee6747 !important;
}

@media (max-width: 768px) {
    .aftercare-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons-container {
        flex-direction: column;
    }
}