/**
 * OstoSafe.fi - Shared Stylesheet
 * 
 * Kaikki yhteiset tyylit yhdessä paikassa
 */

/* =====================
   CSS Variables
   ===================== */
:root {
    --primary-color: #4CAF50;
    --primary-dark: #3d8b40;
    --secondary-color: #2c3e50;
    --accent-color: #ffcc00;
    --danger-color: #d32f2f;
    --warning-color: #ffc107;
    --text-light: #ffffff;
    --text-dark: #333333;
    --text-muted: #777777;
    --bg-light: #ffffff;
    --bg-muted: #f5f5f5;
    --border-color: #eeeeee;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 25px rgba(0,0,0,0.15);
    --radius-sm: 5px;
    --radius-md: 10px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

/* =====================
   Base Reset
   ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-muted);
    line-height: 1.6;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg, video, canvas, audio, iframe, embed, object {
    max-width: 100%;
    height: auto;
    display: block;
}

a, button, input, select, textarea {
    touch-action: manipulation;
}

/* =====================
   Sidebar Navigation
   ===================== */
.sidebar {
    width: 280px;
    background-color: var(--secondary-color);
    color: white;
    padding: 0;
    transition: var(--transition);
    position: relative;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 1.5rem;
    background-color: #1a2530;
    text-align: center;
}

.sidebar-title {
    font-size: 1.5rem;
    margin-bottom: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
}

.menu-title-link {
    color: white;
    text-decoration: none;
    display: block;
    transition: var(--transition);
    border-radius: 4px;
    padding: 0.5rem;
    text-align: center;
}

.menu-title-link:hover,
.menu-title-link:focus {
    background-color: rgba(255,255,255,0.1);
    transform: translateX(5px);
    outline: none;
}

.menu-title-link .brand-safe {
    color: var(--primary-color);
    font-weight: 700;
}

.menu-category {
    margin-top: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem;
}

.menu-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #95a5a6;
    padding: 1.2rem 1.5rem 0.7rem;
    letter-spacing: 1px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    color: #ecf0f1;
    text-decoration: none;
    transition: var(--transition);
    border-left: 4px solid transparent;
    min-height: 44px;
}

.menu-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.menu-item:hover,
.menu-item:focus {
    background-color: rgba(255,255,255,0.1);
    border-left-color: var(--primary-color);
    outline: none;
}

.menu-item.active {
    background-color: rgba(76, 175, 80, 0.2);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

/* Urgent category styling */
.menu-category.urgent .menu-title {
    color: var(--warning-color);
    font-weight: 600;
}

.menu-item.urgent {
    background-color: rgba(211, 47, 47, 0.1);
    border-left-color: var(--danger-color);
}

.menu-item.urgent i {
    color: var(--danger-color);
}

.menu-item.urgent:hover,
.menu-item.urgent:focus {
    background-color: rgba(211, 47, 47, 0.2);
    border-left-color: var(--danger-color);
}

/* =====================
   Main Content Area
   ===================== */
.main-container {
    display: flex;
    flex: 1;
    background-color: white;
}

.content {
    flex: 1;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

/* =====================
   Page Header
   ===================== */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.page-title {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.page-title .brand-highlight {
    color: var(--primary-color);
}

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

/* =====================
   Content Sections
   ===================== */
.content-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.section-title {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: var(--primary-color);
}

/* =====================
   Warning Boxes
   ===================== */
.warning-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background-color: #fff3cd;
    border-left: 4px solid var(--warning-color);
    border-radius: var(--radius-sm);
    margin: 1rem 0;
}

.warning-box.danger {
    background-color: #ffebee;
    border-left-color: var(--danger-color);
}

.warning-box.success {
    background-color: #e8f5e9;
    border-left-color: var(--primary-color);
}

.warning-icon {
    font-size: 1.5rem;
    color: var(--warning-color);
}

.danger-amount {
    color: var(--danger-color);
    font-weight: 700;
}

/* =====================
   CTA Buttons
   ===================== */
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.cta-button.primary {
    background-color: var(--primary-color);
    color: white;
}

.cta-button.primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cta-button.secondary {
    background-color: var(--secondary-color);
    color: white;
}

.cta-button.secondary:hover {
    background-color: #1a2530;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cta-button.urgent {
    background-color: var(--danger-color);
    color: white;
}

.cta-button.urgent:hover {
    background-color: #b71c1c;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* =====================
   News Sidebar
   ===================== */
.news-sidebar {
    width: 300px;
    background-color: var(--bg-muted);
    padding: 1.5rem;
    border-left: 1px solid var(--border-color);
    flex-shrink: 0;
}

.news-title {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

/* =====================
   Footer
   ===================== */
.footer {
    background-color: var(--secondary-color);
    color: var(--text-light);
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
}

/* =====================
   Cookie Banner
   ===================== */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--secondary-color);
    color: white;
    padding: 1rem;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-content p {
    flex: 1;
    min-width: 200px;
}

.cookie-content a {
    color: var(--primary-color);
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
}

.cookie-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

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

.accept-btn:hover {
    background-color: var(--primary-dark);
}

.reject-btn {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.reject-btn:hover {
    background-color: rgba(255,255,255,0.1);
}

/* =====================
   Mobile Menu
   ===================== */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 998;
}

.menu-overlay.active {
    display: block;
}

.menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1000;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.scroll-top-btn {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 997;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.scroll-top-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* =====================
   Ad Containers
   ===================== */
.ad-container {
    margin: 1.5rem 0;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-muted);
    border-radius: var(--radius-sm);
}

.in-article-ad {
    margin: 2rem 0;
}

.sidebar-ad {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Sticky Anchor Ad (Mobile) */
.sticky-ad-container {
    display: none;
}

@media (max-width: 768px) {
    .sticky-ad-container {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        background: white;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        padding: 0.5rem;
    }
    
    .footer {
        padding-bottom: 100px; /* Space for sticky ad */
    }
}

/* ===================== */
/* Internal Linking      */
/* ===================== */
.internal-links-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.internal-links-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.internal-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.internal-link-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.internal-link-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.internal-link-card svg {
    flex-shrink: 0;
    color: var(--primary-color);
}

.internal-link-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.internal-link-text strong {
    font-size: 0.95rem;
}

.internal-link-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tools-section {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-color: #81c784;
}

.tool-card:hover {
    border-color: #4caf50;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin: 0 0.5rem;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs li:last-child {
    color: var(--text-muted);
}

/* Popular Pages */
.popular-pages {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.popular-pages h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.popular-pages ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.popular-pages li a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-dark);
    text-decoration: none;
}

.popular-pages li a:hover {
    background: var(--primary-color);
    color: white;
}

/* ===================== */
/* Footer Links          */
/* ===================== */
.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    text-align: left;
}

.footer-section h4 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: rgba(255,255,255,0.9);
}

.footer-section a {
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.25rem 0;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: white;
}

.footer-copy {
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* =====================
   Notification Toast
   ===================== */
.notification-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
}

.notification-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.notification-success {
    background-color: var(--primary-color);
}

.notification-error {
    background-color: var(--danger-color);
}

.notification-warning {
    background-color: var(--warning-color);
    color: var(--text-dark);
}

/* =====================
   Responsive Design
   ===================== */
@media (max-width: 1200px) {
    .news-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        z-index: 999;
        overflow-y: auto;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    body {
        flex-direction: column;
    }
    
    .main-container {
        padding-top: 60px;
    }
    
    .content {
        padding: 1rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 0.75rem;
    }
    
    .content-section {
        padding: 1rem;
    }
    
    .warning-box {
        flex-direction: column;
        text-align: center;
    }
}

/* Reduce animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}

/* =====================
   Huijaustarkistin Tool
   ===================== */
.tool-container {
    max-width: 800px;
    margin: 0 auto;
}

.tool-header {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tool-title {
    font-size: 2rem;
    color: #111;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.tool-intro {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
}

/* Info box */
.info-box {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.info-box-title {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-section {
    margin-bottom: 1rem;
}

.info-section-title {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.info-section-content {
    color: #555;
    line-height: 1.6;
}

.step-list {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.step-list li {
    margin-bottom: 0.5rem;
}

/* Risk level indicators */
.risk-level {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.risk-level-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
}

.risk-level-indicator.risk-high {
    background-color: #d32f2f;
}

.risk-level-indicator.risk-medium {
    background-color: #ff9800;
}

.risk-level-indicator.risk-low {
    background-color: #4CAF50;
}

/* Platform selector */
.platform-selector {
    margin-bottom: 2rem;
}

.platform-selector h2 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.platform-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.platform-button {
    padding: 0.7rem 1.2rem;
    background-color: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.platform-button:hover {
    background-color: #e8f5e9;
    border-color: #4CAF50;
}

.platform-button.active {
    background-color: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

/* Quiz container */
.quiz-container {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.progress-container {
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #4CAF50;
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0;
}

.question-counter {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.question-section {
    margin-bottom: 1.5rem;
}

.question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    background-color: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.option-label:hover {
    background-color: #e8f5e9;
    border-color: #4CAF50;
}

.option-input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #4CAF50;
}

.button-container {
    text-align: center;
    margin-top: 1.5rem;
}

.check-button {
    padding: 0.8rem 2rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.check-button:hover:not(:disabled) {
    background-color: #3d8b40;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.check-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Result container */
.result-container {
    display: none;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 1rem;
}

.result-container.low-risk {
    background-color: #e8f5e9;
    border: 2px solid #4CAF50;
}

.result-container.medium-risk {
    background-color: #fff3e0;
    border: 2px solid #ff9800;
}

.result-container.high-risk {
    background-color: #ffebee;
    border: 2px solid #d32f2f;
}

.result-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.result-details {
    line-height: 1.8;
    text-align: left;
}

/* =====================
   Guide Page Styles (huijauksen-uhri)
   ===================== */
.guide-container {
    max-width: 800px;
    margin: 0 auto;
}

.guide-header {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.guide-title {
    font-size: 2rem;
    color: #111;
    margin-bottom: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guide-intro {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
}

.highlight {
    color: #d32f2f;
    font-weight: 600;
}

/* Urgent box */
.urgent-box {
    background-color: #ffd3d3;
    border: 2px solid #d32f2f;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.2);
}

.urgent-title {
    color: #d32f2f;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

ol.urgent-steps {
    list-style: none;
    counter-reset: urgent-counter;
    margin: 0;
    padding: 0;
}

ol.urgent-steps li {
    counter-increment: urgent-counter;
    position: relative;
    padding: 0.7rem 0 0.7rem 3rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

ol.urgent-steps li::before {
    content: counter(urgent-counter);
    background-color: #d32f2f;
    color: white;
    position: absolute;
    left: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

/* Guide sections */
.guide-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.03);
}

.section-intro {
    margin-bottom: 1.2rem;
    line-height: 1.6;
    color: #444;
}

/* Contact cards */
.contact-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 1.5rem 0;
}

.contact-card {
    flex: 1 1 200px;
    background-color: #fff;
    border-radius: 8px;
    padding: 1.2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: #e8f5e9;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    color: #4CAF50;
}

.contact-card.urgent .contact-icon {
    background-color: #ffebee;
    color: #d32f2f;
}

.contact-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.contact-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 8px;
}

.contact-card.urgent .contact-number {
    color: #d32f2f;
}

.contact-desc {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Tip and warning boxes */
.tip-box {
    background-color: #e8f5e9;
    border-left: 4px solid #4CAF50;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 4px 4px 0;
}

/* Steps container */
.steps-container {
    margin: 1.5rem 0;
}

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.2rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.step-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.step-number {
    background-color: #4CAF50;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    flex-shrink: 0;
    margin-right: 1rem;
}

.step-content {
    flex: 1;
}

.step-content strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.step-content p {
    margin: 0;
    color: #555;
    line-height: 1.5;
}

.action-step {
    border-left: 4px solid #4285F4;
}

.warning-step {
    border-left: 4px solid #d32f2f;
}

.info-step {
    border-left: 4px solid #FFA000;
}

/* Print button */
.print-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.print-button:hover {
    background-color: #3d8b40;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* FAQ */
.faq-container {
    margin-top: 1rem;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    transition: background-color 0.2s;
}

.faq-question:hover {
    background-color: #e8e8e8;
}

.faq-toggle {
    transition: transform 0.3s;
}

.faq-question.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 1rem;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 0 0 8px 8px;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.faq-question.active + .faq-answer {
    display: block;
}

/* News sidebar items */
.news-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eaeaea;
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-bottom: 0.3rem;
    display: block;
}

.news-headline {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: #2c3e50;
}

.news-summary {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

/* Print styles */
@media print {
    .sidebar, .news-sidebar, .ad-container, .print-button, .menu-toggle, .scroll-top-btn, .cookie-banner, .sticky-ad-container {
        display: none !important;
    }
    body {
        display: block;
    }
    .content {
        max-width: 100%;
        padding: 0;
    }
    .guide-container, .tool-container {
        max-width: 100%;
    }
    .faq-answer {
        display: block !important;
    }
    .faq-toggle {
        display: none;
    }
}

/* Mobile responsive for guide/tool pages */
@media (max-width: 768px) {
    .guide-title, .tool-title {
        font-size: 1.5rem;
    }
    
    .contact-cards {
        flex-direction: column;
    }
    
    .step-item {
        flex-direction: column;
    }
    
    .step-number {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
    
    .platform-buttons {
        justify-content: center;
    }
}

/* =====================
   Page-specific Styles
   ===================== */

/* Intro sections */
.intro-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196f3;
}

.lead-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #333;
}

/* Golden rules */
.golden-rules {
    background-color: #fff8e1;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
    border: 1px solid #ffe082;
}

.golden-rules h2 {
    color: #f57c00;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.rule-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: #f57c00;
    color: white;
    font-weight: bold;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Scam accordion */
.scam-type {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
}

.scam-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.scam-header:hover {
    background-color: #f5f5f5;
}

.scam-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    margin: 0;
}

.scam-header .icon {
    transition: transform 0.3s;
}

.scam-content {
    display: none;
    padding: 0 1.5rem 1.5rem;
}

.scam-content.active {
    display: block;
}

.danger-score {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    background-color: #ffebee;
    color: var(--danger-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Signs list */
.signs-list {
    display: grid;
    gap: 0.5rem;
    margin: 1rem 0;
}

.sign-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem;
    background-color: #fff8e1;
    border-radius: var(--radius-sm);
}

.sign-item i {
    color: #f57c00;
    margin-top: 3px;
}

/* Real case */
.real-case {
    background-color: #fce4ec;
    padding: 1rem;
    border-radius: var(--radius-sm);
    border-left: 4px solid #e91e63;
    margin: 1rem 0;
}

.real-case strong {
    color: #c2185b;
}

/* Checklist */
.checklist-section {
    background-color: #e8f5e9;
}

.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background-color: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.check-item i {
    color: var(--primary-color);
}

/* Meetup comparison */
.meetup-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1rem 0;
}

.meetup-good, .meetup-bad {
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

.meetup-good {
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
}

.meetup-good h4 {
    color: var(--primary-color);
}

.meetup-bad {
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
}

.meetup-bad h4 {
    color: var(--danger-color);
}

.meetup-good ul, .meetup-bad ul {
    margin: 0.5rem 0 0 1.5rem;
}

/* Pro tip */
.pro-tip {
    background-color: #e3f2fd;
    padding: 1rem;
    border-radius: var(--radius-sm);
    border-left: 4px solid #2196f3;
}

.pro-tip i {
    color: #2196f3;
    margin-right: 0.5rem;
}

/* Related section */
.related-section {
    background-color: #f8f9fa;
}

.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.related-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background-color: white;
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.related-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Info cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.info-card {
    background-color: white;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.info-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.info-card h3 i {
    color: var(--primary-color);
}

.info-card ul {
    margin: 0;
    padding-left: 1.5rem;
}

.info-card li {
    margin-bottom: 0.5rem;
}

/* Tool intro */
.tool-intro-section {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left: 4px solid var(--primary-color);
}

/* Contact form */
.contact-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

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

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Search tools grid */
.search-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.search-tool-card {
    background-color: white;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.search-tool-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.search-tool-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.search-tool-card a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.search-tool-card a:hover {
    text-decoration: underline;
}

/* How it works steps */
.how-it-works {
    counter-reset: step-counter;
}

.step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.step::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    border-radius: 50%;
    flex-shrink: 0;
}

.step-content h4 {
    margin-bottom: 0.5rem;
}

/* Database styles */
.database-container {
    background-color: white;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.search-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.search-box input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.search-box button {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

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

.scam-card {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.scam-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.scam-card-title {
    font-weight: 600;
}

.scam-card-type {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background-color: #ffebee;
    color: var(--danger-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

/* Mobile responsive for page styles */
@media (max-width: 768px) {
    .rules-grid {
        grid-template-columns: 1fr;
    }
    
    .meetup-comparison {
        grid-template-columns: 1fr;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    .search-tools-grid {
        grid-template-columns: 1fr;
    }
    
    .search-box {
        flex-direction: column;
    }
}
