/*
Theme Name: PMDS
Theme URI: https://pmds.se
Description: Ett tema för PMDS.se - information och gemenskap för kvinnor med Premenstruellt Dysforiskt Syndrom
Version: 1.0
Author: QY.se
Text Domain: pmds
*/

:root {
    /* Calming, soft feminine palette */
    --primary: #9D7BB0;          /* Soft lavender */
    --primary-dark: #7B5E8C;     /* Deeper lavender */
    --primary-light: #C4B0D4;    /* Light lavender */
    --secondary: #7AACB5;        /* Calming teal */
    --secondary-light: #A8CDD5;  /* Soft teal */
    --accent: #E8B4BC;           /* Soft rose */
    --dark: #4A4458;             /* Soft purple-gray */
    --gray: #7D7589;             /* Lavender gray */
    --light-gray: #F8F6FA;       /* Lavender white */
    --light-purple: #F3EEF8;     /* Very light purple for backgrounds */
    --white: #FEFEFF;            /* Pure soft white */
    --success: #7DB59A;          /* Soft mint */
    --warning: #E8C87A;          /* Soft gold */
    --danger: #D88A8A;           /* Soft coral */
    --gradient: linear-gradient(135deg, #9D7BB0 0%, #7AACB5 100%);
    --gradient-warm: linear-gradient(135deg, #C4B0D4 0%, #E8B4BC 100%);
    --gradient-soft: linear-gradient(135deg, #B8A5C9 0%, #A8CDD5 100%);
    
    /* Light mode (default) */
    --bg-primary: #FEFEFF;
    --bg-secondary: #F8F6FA;
    --text-primary: #4A4458;
    --text-secondary: #7D7589;
    --border-color: #E8E4EE;
    --card-bg: #FFFFFF;
    --header-bg: #FEFEFF;
    --footer-bg: #4A4458;
}

/* Dark mode */
[data-theme="dark"] {
    --bg-primary: #1E1B24;
    --bg-secondary: #2A2633;
    --text-primary: #F0EDF5;
    --text-secondary: #B0A8BC;
    --border-color: #3D3847;
    --card-bg: #2A2633;
    --header-bg: #1E1B24;
    --footer-bg: #15131A;
    --dark: #F0EDF5;
    --gray: #B0A8BC;
    --light-gray: #3D3847;
    --light-purple: #2F2A3A;     /* Dark purple for backgrounds */
    --white: #1E1B24;
    --primary: #B899C9;
    --primary-light: #D4C0E2;
    --secondary: #8FC0CA;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.theme-icon-dark { display: none; }
.theme-icon-light { display: block; }

[data-theme="dark"] .theme-icon-dark { display: block; }
[data-theme="dark"] .theme-icon-light { display: none; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: background-color 0.3s, color 0.3s;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient);
    color: #FDFCFB;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 90, 107, 0.35);
    color: #FDFCFB;
}

.btn-secondary {
    background: var(--light-gray);
    color: var(--dark);
}

.btn-secondary:hover {
    background: #E5E7EB;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* Header */
.site-header {
    background: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s;
}

[data-theme="dark"] .site-header {
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

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

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.site-logo img {
    height: 40px;
}

.site-logo span:first-child {
    background: none;
    -webkit-text-fill-color: initial;
}

.site-logo span:last-child {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: var(--gray);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

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

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.2s;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Dropdown menu */
.main-nav .has-dropdown {
    position: relative;
}

.main-nav .has-dropdown > a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.main-nav .dropdown-arrow {
    font-size: 0.65rem;
    line-height: 1;
    transition: transform 0.2s;
}

.main-nav .has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.main-nav .dropdown-menu {
    position: absolute !important;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 8px 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
    z-index: 1000;
    display: none !important;
    flex-direction: column;
    gap: 0;
    list-style: none;
}

.main-nav .has-dropdown:hover .dropdown-menu {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav .dropdown-menu li {
    display: block;
}

.main-nav .dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--gray);
    white-space: nowrap;
}

.main-nav .dropdown-menu a:hover {
    background: var(--light);
    color: var(--primary);
}

.main-nav .dropdown-menu a::after {
    display: none;
}

/* Dark mode dropdown */
[data-theme="dark"] .main-nav .dropdown-menu {
    background: var(--dark);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

[data-theme="dark"] .main-nav .dropdown-menu a:hover {
    background: rgba(255,255,255,0.05);
}

/* Profile dropdown */
.nav-profile-dropdown {
    position: relative;
}

.nav-profile-dropdown > a {
    display: flex;
    align-items: center;
    padding: 8px !important;
}

.nav-profile-dropdown .profile-dropdown {
    right: 0;
    left: auto;
    min-width: 180px;
}

.nav-profile-dropdown .dropdown-header {
    padding: 10px 15px;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.nav-profile-dropdown .dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 5px 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Mobile menu */
.mobile-menu-toggle {
    display: none;
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-menu-toggle .hamburger-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
}

.mobile-menu-toggle:active {
    background: var(--primary-light);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #9D7BB0 0%, #8CA5C4 50%, #7AACB5 100%);
    color: #FEFEFF;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/images/hero-pattern.svg') center/cover no-repeat;
    opacity: 0.15;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 100" preserveAspectRatio="none"><path fill="%23FEFEFF" d="M0,50 C360,100 720,0 1080,50 C1260,75 1380,60 1440,50 L1440,100 L0,100 Z"/></svg>') bottom/cover no-repeat;
}

[data-theme="dark"] .hero::after {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 100" preserveAspectRatio="none"><path fill="%231E1B24" d="M0,50 C360,100 720,0 1080,50 C1260,75 1380,60 1440,50 L1440,100 L0,100 Z"/></svg>') bottom/cover no-repeat;
}

.hero-content {
    position: relative;
    max-width: 700px;
}

.hero h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 30px;
    align-items: center;
}

.hero .btn {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.hero-search {
    display: flex;
    background: rgba(255,255,255,0.95);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-search input {
    border: none;
    padding: 14px 20px;
    font-size: 1rem;
    width: 200px;
    outline: none;
    background: transparent;
    color: var(--text-primary);
}

.hero-search input::placeholder {
    color: #888;
}

.hero-search button {
    border: none;
    background: var(--primary);
    color: white;
    padding: 14px 18px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.2s;
}

.hero-search button:hover {
    background: var(--primary-dark);
}

/* Info Cards */
.info-section {
    padding: 80px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 30px;
}

.info-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.info-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(139, 90, 107, 0.15), rgba(91, 123, 122, 0.15));
    border: 1px solid rgba(139, 90, 107, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.info-card h3 {
    margin-bottom: 10px;
}

.info-card p {
    color: var(--gray);
}

/* News Section */
.news-section {
    background: var(--bg-secondary);
    padding: 80px 0;
    transition: background-color 0.3s;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    margin-bottom: 10px;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.2s, background-color 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card-image {
    display: block;
    height: 200px;
    background: var(--gradient);
    position: relative;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-body {
    padding: 25px;
}

.news-card-meta {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 10px;
}

.news-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.news-card h3 a {
    color: var(--dark);
}

.news-card h3 a:hover {
    color: var(--primary);
}

.news-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Forum Section */
.forum-section {
    padding: 80px 0;
}

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

.forum-category {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: border-color 0.2s, background-color 0.3s;
}

.forum-category:hover {
    border-color: var(--primary);
}

.forum-category-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.forum-category-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.forum-category-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.forum-category-stats {
    margin-left: auto;
    text-align: right;
    font-size: 0.85rem;
    color: var(--gray);
}

/* Members-only category */
.forum-category.members-only {
    border-color: rgba(124, 58, 237, 0.3);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(138, 165, 196, 0.05));
}

.forum-category.members-only .forum-category-icon {
    background: linear-gradient(135deg, #7C3AED, #9D7BB0);
}

.forum-category.members-only.locked {
    opacity: 0.7;
    cursor: not-allowed;
}

.forum-category.members-only.locked:hover {
    border-color: rgba(124, 58, 237, 0.3);
    transform: none;
}

.forum-category.members-only.locked .forum-category-info p a {
    color: var(--primary);
    font-weight: 500;
}

/* Forum Activity Section */
.forum-activity-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.forum-activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.forum-activity-card {
    min-width: 0;
    overflow-wrap: anywhere;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

.forum-activity-card:hover,
.forum-activity-card:focus-visible {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(157, 123, 176, 0.15);
}

.forum-activity-card:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

.forum-activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 12px;
}

.forum-activity-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.forum-activity-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.forum-activity-card h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.forum-activity-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.forum-activity-footer {
    display: flex;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.forum-activity-author {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
    .forum-activity-grid {
        grid-template-columns: 1fr;
    }
    
    .forum-activity-section {
        padding: 60px 0;
    }
}

/* Footer */
.site-footer {
    background: var(--footer-bg);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
    transition: background-color 0.3s;
}

/* Footer Refresh Button */
.footer-refresh-btn {
    margin-top: 20px;
    padding: 10px 24px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.footer-refresh-btn:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
    transform: translateY(-2px);
}

.footer-refresh-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

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

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: rgba(255,255,255,0.7);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Page Content */
.page-header {
    background: var(--gradient);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 10px;
}

.page-header p {
    opacity: 0.9;
}

.page-content {
    padding: 60px 0;
}

.content-area {
    max-width: 800px;
    margin: 0 auto;
}

.content-area h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.content-area ul, .content-area ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.content-area li {
    margin-bottom: 10px;
}

/* Page Illustration - Right aligned decorative images */
.page-illustration {
    float: right;
    width: 45%;
    max-width: 280px;
    margin: 0 0 25px 30px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 16px;
    text-align: center;
}

.page-illustration img,
.page-illustration svg {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
}

.page-illustration-caption {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 10px;
    font-style: italic;
}

@media (max-width: 768px) {
    .page-illustration {
        float: none;
        width: 60%;
        max-width: 200px;
        margin: 0 auto 25px auto;
    }
}

@media (max-width: 480px) {
    .page-illustration {
        width: 80%;
        max-width: 180px;
    }
}

/* Content after illustration - clear float */
.content-area::after {
    content: "";
    display: table;
    clear: both;
}

/* User Auth */
.auth-form {
    max-width: 450px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: background-color 0.3s;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, background-color 0.3s, color 0.3s;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--gray);
    font-size: 0.85rem;
}

.auth-form .btn {
    width: 100%;
    margin-top: 10px;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
    color: var(--gray);
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.alert-info {
    background: #DBEAFE;
    color: #1E40AF;
    border: 1px solid #BFDBFE;
}

/* Comments */
.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--light-gray);
}

.comment-list {
    list-style: none;
}

.comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--light-gray);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
}

.comment-meta {
    font-size: 0.85rem;
    color: var(--gray);
}

/* PMDS Type Badges */
.pmds-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 6px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.pmds-type-diagnosed {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: white;
}

.pmds-type-self_diagnosed {
    background: linear-gradient(135deg, #ec4899, #db2777);
    color: white;
}

.pmds-type-family {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: white;
}

.pmds-type-other {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
        padding: 20px;
        z-index: 1000;
        border-top: 1px solid var(--border-color);
    }
    
    [data-theme="dark"] .main-nav {
        background: var(--dark);
    }
    
    .main-nav.active {
        display: block !important;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Mobile dropdown - hidden by default, shown on click */
    .main-nav .has-dropdown > a {
        position: relative;
    }
    
    .main-nav .dropdown-menu {
        position: static;
        display: none;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 20px;
        background: var(--white);
        min-width: auto;
        transition: max-height 0.3s, opacity 0.3s, padding 0.3s;
    }
    
    [data-theme="dark"] .main-nav .dropdown-menu {
        background: var(--dark);
    }
    
    .main-nav .has-dropdown.open .dropdown-menu {
        display: block;
        max-height: 500px;
        opacity: 1;
        visibility: visible;
        padding: 10px 15px;
        margin: 5px 0;
        border-radius: 8px;
    }
    
    .main-nav .has-dropdown:hover .dropdown-menu {
        display: none;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        padding: 0 15px;
    }
    
    .main-nav .has-dropdown.open:hover .dropdown-menu {
        display: block;
        max-height: 500px;
        opacity: 1;
        visibility: visible;
        padding: 10px 15px;
    }
    
    .main-nav .dropdown-menu a {
        padding: 10px 5px;
        display: block;
    }
    
    .main-nav .dropdown-menu a:hover {
        background: var(--light-gray);
        border-radius: 4px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero .btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .hero-search {
        width: 100%;
    }
    
    .hero-search input {
        flex: 1;
        width: auto;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    .info-grid,
    .news-grid,
    .forum-categories {
        grid-template-columns: 1fr;
    }
}

/* ================================
   PMDS Quiz Styles
   ================================ */

.quiz-page {
    padding: 60px 0;
    min-height: 70vh;
}

.quiz-section {
    max-width: 700px;
    margin: 0 auto;
}

.quiz-header {
    text-align: center;
    margin-bottom: 30px;
}

.quiz-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 20px;
}

.quiz-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.quiz-disclaimer {
    background: linear-gradient(135deg, rgba(201, 168, 124, 0.15), rgba(201, 168, 124, 0.1));
    border: 1px solid rgba(201, 168, 124, 0.4);
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 30px;
    color: #6B5A3E;
}

[data-theme="dark"] .quiz-disclaimer {
    background: rgba(201, 168, 124, 0.1);
    border-color: rgba(201, 168, 124, 0.3);
    color: #D4C4A8;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Progress Bar */
.quiz-progress {
    margin-bottom: 30px;
}

.progress-bar {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Question Card */
.question-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.question-text {
    font-size: 1.4rem;
    margin-bottom: 30px;
    text-align: center;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-btn {
    padding: 18px 24px;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: 12px;
    text-align: left;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-primary);
}

.option-btn:hover {
    border-color: var(--primary);
    background: var(--bg-primary);
    transform: translateX(5px);
}

/* Results */
.result-header {
    text-align: center;
    margin-bottom: 30px;
}

.result-score {
    font-size: 5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.result-score.score-low { 
    background: linear-gradient(135deg, #6B8E7A, #8BA89A);
    -webkit-background-clip: text;
}
.result-score.score-moderate { 
    background: linear-gradient(135deg, #C9A87C, #D4BC9A);
    -webkit-background-clip: text;
}
.result-score.score-high { 
    background: linear-gradient(135deg, #B8929E, #8B5A6B);
    -webkit-background-clip: text;
}
.result-score.score-severe { 
    background: linear-gradient(135deg, #B85C5C, #9A4A4A);
    -webkit-background-clip: text;
}

.result-description {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.result-description p {
    margin-bottom: 15px;
}

.result-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.result-link {
    display: block;
    padding: 15px 20px;
    background: var(--bg-secondary);
    border-radius: 10px;
    color: var(--text-primary);
    transition: all 0.2s;
}

.result-link:hover {
    background: var(--primary);
    color: white;
    transform: translateX(5px);
}

.result-share {
    background: linear-gradient(135deg, #9D7BB0 0%, #7AACB5 100%);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    color: #FEFEFF;
    margin-bottom: 30px;
}

.result-share h3 {
    color: #FEFEFF;
    margin-bottom: 10px;
}

.result-share p {
    opacity: 0.9;
    margin-bottom: 20px;
}

.result-share .btn {
    background: #FDFCFB;
    color: var(--primary);
}

.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ================================
   Anhöriga Page Styles
   ================================ */

.anhoriga-page {
    background: var(--bg-primary);
}

.anhoriga-hero {
    background: linear-gradient(135deg, #9D7BB0 0%, #8CA5C4 50%, #7AACB5 100%);
    color: #FEFEFF;
    padding: 100px 0 120px;
    text-align: center;
    position: relative;
}

.anhoriga-hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 100" preserveAspectRatio="none"><path fill="%23FEFEFF" d="M0,50 C360,100 720,0 1080,50 C1260,75 1380,60 1440,50 L1440,100 L0,100 Z"/></svg>') bottom/cover no-repeat;
}

[data-theme="dark"] .anhoriga-hero::after {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 100" preserveAspectRatio="none"><path fill="%231E1B24" d="M0,50 C360,100 720,0 1080,50 C1260,75 1380,60 1440,50 L1440,100 L0,100 Z"/></svg>') bottom/cover no-repeat;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.anhoriga-hero h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.anhoriga-section {
    padding: 60px 0;
}

.anhoriga-section.alt-bg {
    background: var(--bg-secondary);
}

.anhoriga-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.info-box {
    background: linear-gradient(135deg, rgba(139, 90, 107, 0.08), rgba(91, 123, 122, 0.08));
    border-left: 4px solid var(--primary);
    padding: 25px 30px;
    border-radius: 0 12px 12px 0;
    margin: 30px 0;
}

.info-box h3 {
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 1.1rem;
}

.symptom-list {
    list-style: none;
    padding: 0;
}

.symptom-list li {
    padding: 10px 0 10px 35px;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.symptom-list li::before {
    content: "•";
    color: var(--secondary);
    font-size: 1.5rem;
    position: absolute;
    left: 10px;
    top: 8px;
}

/* Testimonials */
.testimonial {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    margin: 20px 0;
    font-style: italic;
    font-size: 1.1rem;
    position: relative;
    border-left: 4px solid var(--secondary);
}

.testimonial::before {
    content: '"';
    font-size: 4rem;
    color: var(--secondary);
    opacity: 0.3;
    position: absolute;
    top: -10px;
    left: 15px;
    font-family: Georgia, serif;
}

/* Help Cards */
.help-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.help-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.help-card.dont {
    border: 2px solid #FCA5A5;
}

.help-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
}

.help-card h3 {
    margin-bottom: 20px;
}

.help-card ul {
    list-style: none;
    padding: 0;
}

.help-card li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.help-card li:last-child {
    border-bottom: none;
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.tip {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.tip span {
    font-size: 2rem;
    display: block;
    margin-bottom: 15px;
}

.tip p {
    font-size: 0.95rem;
    margin: 0;
}

/* Warning Box */
.warning-box {
    background: #FEE2E2;
    border: 2px solid #EF4444;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
}

[data-theme="dark"] .warning-box {
    background: #7F1D1D;
    border-color: #F87171;
}

.warning-box h3 {
    color: #DC2626;
    margin-bottom: 10px;
}

[data-theme="dark"] .warning-box h3 {
    color: #FCA5A5;
}

/* Treatment List */
.treatment-list {
    list-style: none;
    padding: 0;
}

.treatment-list li {
    padding: 15px 0 15px 40px;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.treatment-list li::before {
    content: "💊";
    position: absolute;
    left: 0;
    top: 13px;
}

/* Share Section */
.share-section {
    background: linear-gradient(135deg, #9D7BB0 0%, #7AACB5 100%);
    color: #FEFEFF;
    text-align: center;
}

.share-section h2,
.share-section p {
    color: #FEFEFF;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 25px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.share-btn.facebook { background: #1877F2; color: white; }
.share-btn.twitter { background: #000; color: white; }
.share-btn.email { background: #EA4335; color: white; }
.share-btn.whatsapp { background: #25D366; color: white; }
.share-btn.messenger { background: #0084FF; color: white; }
.share-btn.copy { background: white; color: var(--dark); }

/* CTA Section */
.cta-section {
    text-align: center;
    background: var(--bg-primary);
}

.cta-section p:last-child {
    font-size: 3rem;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .quiz-header h1,
    .anhoriga-hero h1 {
        font-size: 1.8rem;
    }
    
    .question-card {
        padding: 25px;
    }
    
    .result-score {
        font-size: 3.5rem;
    }
    
    .help-cards {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        justify-content: center;
    }
}

/* Mobile header fix - buttons on separate row */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 0;
    }
    
    .site-logo {
        font-size: 1.3rem;
    }
    
    .site-logo img {
        width: 28px;
        height: 28px;
    }
    
    /* Auth buttons on their own row */
    .header-actions {
        order: 3;
        width: 100%;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .header-actions .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    /* Hamburger menu at far right of button row */
    .mobile-menu-toggle {
        display: flex !important;
        order: 10;
        margin-left: auto;
        background: var(--light-gray);
        padding: 8px 12px;
        border-radius: 8px;
    }
    
    .theme-toggle {
        top: 12px;
        right: 12px;
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
}

/* ================================
   Cookie Consent Banner
   ================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    box-shadow: 0 -5px 30px rgba(0,0,0,0.15);
    z-index: 9999;
    padding: 25px;
    border-top: 3px solid var(--primary);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.cookie-text p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.cookie-link {
    font-size: 0.9rem;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-actions .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.cookie-settings {
    max-width: 1200px;
    margin: 20px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.cookie-settings h4 {
    margin-bottom: 15px;
}

.cookie-option {
    margin-bottom: 12px;
}

.cookie-option label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.cookie-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--primary);
}

.cookie-option strong {
    display: block;
}

.cookie-option span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-actions {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-actions .btn {
        flex: 1;
        min-width: 120px;
    }
}

/* ================================
   Policy Pages
   ================================ */

.policy-content {
    padding: 40px 0 60px;
}

.policy-updated {
    background: var(--bg-secondary);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.policy-content h2 {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.policy-content h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.policy-content h3 {
    margin-top: 25px;
    color: var(--primary);
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
}

.cookie-table th,
.cookie-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.cookie-table th {
    background: var(--bg-secondary);
    font-weight: 600;
}

.cookie-table tr:hover td {
    background: var(--bg-secondary);
}

@media (max-width: 768px) {
    .cookie-table {
        font-size: 0.85rem;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 10px;
    }
}

/* ================================
   Disclaimer Styles
   ================================ */

.footer-disclaimer {
    background: rgba(232, 180, 188, 0.15);
    border: 1px solid rgba(232, 180, 188, 0.3);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: left;
}

.footer-disclaimer h5 {
    color: var(--accent);
    margin-bottom: 12px;
    font-size: 1rem;
}

.footer-disclaimer p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-disclaimer p:last-child {
    margin-bottom: 0;
}

/* Medication Disclaimer Alert */
.medication-disclaimer {
    background: linear-gradient(135deg, rgba(232, 180, 188, 0.15), rgba(157, 123, 176, 0.1));
    border-left: 4px solid var(--accent);
    border-radius: 0 12px 12px 0;
    padding: 20px 25px;
    margin: 20px 0;
}

.medication-disclaimer h4 {
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.medication-disclaimer p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Forum medication disclaimer */
.forum-medication-notice {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--warning);
    border-radius: 0 8px 8px 0;
    padding: 15px 20px;
    margin: 15px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.forum-medication-notice strong {
    color: var(--dark);
    display: block;
    margin-bottom: 5px;
}

/* ================================
   Contact Form Styles
   ================================ */

.contact-intro {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.contact-intro p {
    margin: 0;
    color: var(--text-secondary);
}

.contact-form {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.form-group .required {
    color: var(--danger);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(157, 123, 176, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
}

.checkbox-label a {
    color: var(--primary);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.form-alert {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-weight: 500;
}

.form-alert.success {
    background: rgba(125, 181, 154, 0.15);
    border: 1px solid rgba(125, 181, 154, 0.3);
    color: var(--success);
}

.form-alert.error {
    background: rgba(216, 138, 138, 0.15);
    border: 1px solid rgba(216, 138, 138, 0.3);
    color: var(--danger);
}

/* CAPTCHA styling */
.captcha-group {
    background: rgba(157, 123, 176, 0.08);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(157, 123, 176, 0.2);
    margin-top: 15px;
}

.captcha-group label {
    color: var(--primary);
    margin-bottom: 10px;
}

.captcha-input {
    max-width: 150px;
    text-align: center;
    font-size: 1.2rem !important;
    font-weight: 600;
}

.form-hint {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.contact-alternatives {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.contact-alternatives h3 {
    text-align: center;
    margin-bottom: 30px;
}

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

.contact-method {
    text-align: center;
    padding: 25px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.contact-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.contact-method h4 {
    margin-bottom: 8px;
}

.contact-method p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ================================
   Help Page Styles
   ================================ */

.help-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.crisis-box {
    background: linear-gradient(135deg, rgba(216, 138, 138, 0.1), rgba(232, 180, 188, 0.15));
    border: 2px solid rgba(216, 138, 138, 0.3);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.crisis-box h3 {
    color: var(--danger);
    margin-bottom: 15px;
}

.crisis-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.crisis-box li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(216, 138, 138, 0.2);
}

.crisis-box li:last-child {
    border-bottom: none;
}

.help-sections {
    max-width: 900px;
    margin: 0 auto;
}

.help-section {
    display: flex;
    gap: 30px;
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

.help-section:last-child {
    border-bottom: none;
}

.help-section-icon {
    font-size: 3rem;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: var(--bg-secondary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-section-content {
    flex: 1;
}

.help-section-content h2 {
    margin-top: 0;
    margin-bottom: 15px;
}

.help-section-content h4 {
    margin-top: 25px;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.help-section-content ul {
    margin: 0 0 15px 0;
    padding-left: 20px;
}

.help-section-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.help-tip {
    background: rgba(157, 123, 176, 0.1);
    border-left: 4px solid var(--primary);
    padding: 15px 20px;
    border-radius: 0 10px 10px 0;
    margin-top: 20px;
    font-size: 0.95rem;
}

.help-cta {
    text-align: center;
    padding: 60px 40px;
    background: var(--gradient-soft);
    border-radius: 20px;
    margin-top: 50px;
    color: #FEFEFF;
}

.help-cta h3 {
    color: #FEFEFF;
    margin-bottom: 15px;
}

.help-cta p {
    opacity: 0.9;
    margin-bottom: 25px;
}

.help-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.help-cta .btn-primary {
    background: #FEFEFF;
    color: var(--primary-dark);
}

.help-cta .btn-secondary {
    background: rgba(255,255,255,0.2);
    color: #FEFEFF;
    border: 2px solid rgba(255,255,255,0.5);
}

@media (max-width: 768px) {
    .help-section {
        flex-direction: column;
        gap: 20px;
    }
    
    .help-section-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .crisis-box {
        padding: 20px;
    }
}

/* ================================
   Profile Page Styles
   ================================ */

.profile-container {
    max-width: 700px;
    margin: 0 auto;
}

.profile-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
}

.profile-avatar-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
}

.profile-avatar-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.avatar-upload-form {
    position: absolute;
    bottom: 0;
    right: 0;
}

.avatar-upload-btn {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.2s, background 0.2s;
    border: 2px solid #fff;
}

.avatar-upload-btn:hover {
    transform: scale(1.1);
    background: var(--secondary-color);
}

.avatar-upload-btn input[type="file"] {
    display: none;
}

/* Legacy text avatar fallback */
.profile-avatar {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 auto 15px;
}

.profile-card h2 {
    margin-bottom: 5px;
}

.profile-email {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.profile-meta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.profile-role {
    background: var(--bg-secondary);
    padding: 5px 12px;
    border-radius: 20px;
}

.profile-warning {
    background: rgba(232, 200, 122, 0.15);
    border: 1px solid rgba(232, 200, 122, 0.3);
    color: var(--warning);
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.9rem;
}

.profile-form {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
}

.profile-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.profile-activity {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
}

.profile-activity h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.activity-list li:last-child {
    border-bottom: none;
}

.activity-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
    white-space: nowrap;
}

.no-activity {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(125, 181, 154, 0.15);
    border: 1px solid rgba(125, 181, 154, 0.3);
    color: var(--success);
}

.alert-error {
    background: rgba(216, 138, 138, 0.15);
    border: 1px solid rgba(216, 138, 138, 0.3);
    color: var(--danger);
}

/* ================================
   Quiz Share Result Page
   ================================ */

.share-result-page {
    padding: 60px 0;
    text-align: center;
}

.share-icon {
    margin-bottom: 30px;
}

.share-icon svg {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.share-headline {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.share-intro {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.share-result-box {
    background: var(--bg-secondary);
    border-left: 4px solid;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 50px;
    text-align: center;
}

.share-result-box .result-percentage {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.share-result-box .result-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
}

.share-result-page .share-section {
    text-align: left;
    margin-bottom: 50px;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.share-result-page .share-section h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.share-result-page .share-section p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.pmds-symptoms {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
}

.pmds-symptoms h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.pmds-symptoms ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.pmds-symptoms li {
    color: var(--text-secondary);
    padding: 8px 0;
}

.symptom-note {
    font-style: italic;
    color: var(--text-secondary);
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.support-tips {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.support-tip {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: 12px;
}

.support-tip .tip-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.support-tip strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.support-tip p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

.share-cta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 600px) {
    .share-cta-grid {
        grid-template-columns: 1fr;
    }
}

.share-cta-card {
    display: block;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid var(--border-color);
    text-align: left;
}

.share-cta-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.share-cta-card.primary {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    border-color: var(--primary);
}

.share-cta-card.primary strong,
.share-cta-card.primary p {
    color: var(--dark);
}

.share-cta-card .cta-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 10px;
}

.share-cta-card strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-size: 0.95rem;
    font-weight: 600;
}

.share-cta-card p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.85rem !important;
    line-height: 1.5;
    font-weight: 400;
}

.relatives-welcome {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgba(167, 139, 182, 0.15), rgba(125, 181, 154, 0.15));
    border-radius: 12px;
    margin-top: 30px;
}

.relatives-welcome p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.share-disclaimer {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 10px;
    padding: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: left;
}

/* Quiz Share Buttons (on quiz results page) */
.share-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

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

.share-btn-facebook:hover {
    background: #166fe5;
}

.share-btn-whatsapp {
    background: #25d366;
    color: white;
}

.share-btn-whatsapp:hover {
    background: #22c55e;
}

.share-btn-email {
    background: var(--gray);
    color: white;
}

.share-btn-email:hover {
    background: var(--dark);
}

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

.share-btn-copy:hover {
    background: var(--primary-dark);
}

.share-btn-copy.copied {
    background: var(--success);
}

.share-url-display {
    display: none;
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    word-break: break-all;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--dark);
}

[data-theme="dark"] .share-url-display {
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
}

.share-loading {
    display: none;
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .share-headline {
        font-size: 1.5rem;
    }
    
    .share-result-box .result-percentage {
        font-size: 2.5rem;
    }
    
    .support-tip {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .share-cta-grid {
        grid-template-columns: 1fr;
    }
}

/* Quiz share hint on intro */
.quiz-share-hint {
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--text-muted, #aaa);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.7;
}

/* Quiz info section */
.quiz-info-section {
    margin-top: 60px;
    padding-top: 50px;
    border-top: 1px solid var(--border-color);
    text-align: left;
}

.quiz-info-section h2 {
    text-align: center;
    margin-bottom: 35px;
    color: var(--text-primary);
}

.quiz-benefits {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
}

.benefit-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.benefit-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.benefit-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.benefit-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.benefit-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.quiz-alternatives {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
}

[data-theme="dark"] .quiz-alternatives {
    background: linear-gradient(135deg, rgba(157, 123, 176, 0.2) 0%, rgba(122, 172, 181, 0.2) 100%);
}

.quiz-alternatives h3 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.quiz-alternatives p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 600px) {
    .benefit-item {
        flex-direction: column;
        text-align: center;
    }
    
    .benefit-icon {
        margin-bottom: 5px;
    }
}

/* Admin badge */
.admin-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
    margin-right: 4px;
}

/* Report button */
.report-btn:hover {
    background: var(--danger) !important;
    color: white !important;
    border-color: var(--danger) !important;
}
.btn-admin { background: linear-gradient(135deg, #2c3e50, #34495e) !important; color: white !important; border: none !important; }

/* ============================================
   REACTIONS SYSTEM
   ============================================ */
.reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.reaction-btn:hover:not(.disabled) {
    background: var(--bg-card);
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.reaction-btn.active {
    background: rgba(var(--accent-rgb), 0.1);
    border-color: var(--accent-color);
}

.reaction-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.reaction-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

.reaction-btn .reaction-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.reaction-btn .reaction-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 10px;
}

.reaction-btn.active .reaction-count {
    color: var(--accent-color);
}

/* Heart button specific */
.heart-btn.active {
    background: rgba(231, 76, 60, 0.1);
    border-color: #e74c3c;
}

.heart-btn.active .reaction-count {
    color: #e74c3c;
}

/* Comment reactions container */
.comment-reactions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.comment-reactions .reaction-btn {
    padding: 4px 10px;
    font-size: 0.85rem;
}

.comment-reactions .reaction-icon {
    font-size: 1rem;
}

/* Post reactions in header */
.post-reactions {
    margin-top: 15px;
}

.post-reaction-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.post-reaction-buttons .reaction-btn {
    padding: 8px 14px;
    font-size: 0.95rem;
    border-radius: 20px;
}

.post-reaction-buttons .reaction-btn .reaction-icon {
    font-size: 1.1rem;
}

.post-reaction-buttons .reaction-btn.thumbsup-btn.active,
.post-reaction-buttons .reaction-btn.thinking-btn.active {
    background: var(--primary-light);
}

/* About us section on contact page */
.about-us-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
}

.about-us-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.about-us-section p {
    line-height: 1.7;
    color: var(--text-secondary);
}

.disclaimer-box {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-top: 25px;
}

.disclaimer-box h4 {
    margin: 0 0 10px 0;
    color: #856404;
}

[data-theme="dark"] .disclaimer-box h4 {
    color: #ffc107;
}

.disclaimer-box p {
    margin: 0;
    font-size: 0.9rem;
}

.contact-intro h3 {
    margin-top: 0;
}

/* News article layout with right-aligned featured image */
.news-article-content {
    display: flow-root;
}

.news-featured-image {
    float: right;
    margin: 0 0 20px 30px;
    max-width: 350px;
    border-radius: 12px;
    overflow: hidden;
}

.news-featured-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.news-article-text {
    min-height: 200px;
}

.news-article-text p:first-child {
    margin-top: 0;
}

@media (max-width: 768px) {
    .news-featured-image {
        float: none;
        margin: 0 0 20px 0;
        max-width: 100%;
    }
}

/* Author link in news cards */
.author-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.author-link:hover {
    color: var(--primary);
    text-decoration: underline;
}
