/*
Theme Name: Pontos News Magazine Child
Template: pontos-news-magazine
Version: 1.0.0
Description: Child theme for Pontos
*/

/* ============================================
   CSS Custom Properties (Variables)
   ============================================ */
:root {
    /* Colors */
    --primary-color: #007cba;
    --primary-dark: #005582;
    --primary-light: #0d95e8;

    --hot-color: #dd2f43;

    --text-primary: #333;
    --text-secondary: #666;
    --text-muted: #888;
    --text-light: #999;

    --background-primary: #fff;
    --background-secondary: #f8f9fa;
    --background-tertiary: #f0f0f0;

    --border-light: #eee;
    --border-medium: #ddd;

    /* Spacing */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 15px;
    --spacing-lg: 20px;
    --spacing-xl: 30px;
    --spacing-xxl: 40px;

    /* Border Radius */
    --radius-sm: 5px;
    --radius-md: 8px;
    --radius-lg: 15px;

    /* Shadows */
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 5px 15px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.2);

    /* Typography */
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 24px;
    --font-size-xxl: 32px;
    --font-size-title: 2.5em;

    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    --line-height-tight: 1.3;
    --line-height-base: 1.5;
    --line-height-relaxed: 1.7;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Container */
    --container-max-width: 800px;
    --container-padding: var(--spacing-lg);
}

/* ============================================
   Loading Animation
   ============================================ */
.loading-placeholder {
    background: linear-gradient(90deg, var(--background-tertiary) 25%, var(--border-light) 50%, var(--background-tertiary) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ============================================
   Accessibility & Screen Reader Support
   ============================================ */
.screen-reader-text {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;

    &:focus {
        background-color: var(--background-primary);
        border-radius: var(--radius-sm);
        box-shadow: var(--shadow-medium);
        color: var(--text-primary);
        display: block;
        font-size: var(--font-size-sm);
        font-weight: var(--font-weight-bold);
        height: auto;
        left: var(--spacing-xs);
        line-height: normal;
        padding: var(--spacing-xs) var(--spacing-md);
        text-decoration: none;
        top: var(--spacing-xs);
        width: auto;
        z-index: 100000;
    }
}

/* Focus styles for better accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .social-sharing,
    .related-posts-by-category,
    .related-posts-by-tags {
        display: none;
    }

    .single-post-container {
        box-shadow: none;
        border: none;
    }

    .single-post-featured-image img {
        max-height: 300px;
        object-fit: contain;
    }
}

/* ============================================
   Reduced Motion Support
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .loading-placeholder {
        animation: none;
        background: var(--background-tertiary);
    }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    :root {
        --container-padding: var(--spacing-md);
        --font-size-title: 2em;
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-title: 1.6em;
    }
}
