/**
 * Apextek WordPress Theme - Main Stylesheet
 * Modern, corporate design with smooth animations and geometric elements
 * Version: 1.0.0
 */

/* ============================================
   CSS VARIABLES & THEME SETUP
   ============================================ */

:root {
    /* Brand Colors */
    --primary: #00d4ff;
    --primary-dark: #0099cc;
    --secondary: #00ffa3;
    --accent: #ff6b6b;
    
    /* Neutrals */
    --dark-bg: #0a0a0a;
    --dark-card: #0f0f0f;
    --dark-elevated: #1a1a2e;
    --dark-elevated-alt: #16213e;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --text-muted: #666666;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-accent: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark-elevated) 0%, var(--dark-elevated-alt) 100%);
    
    /* Shadows */
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 60px rgba(0, 212, 255, 0.15);
    --shadow-xl: 0 30px 80px rgba(0, 212, 255, 0.25);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 10px;
    --radius-md: 15px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-pill: 50px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-slower: 0.8s ease;
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-size-xs: 0.85rem;
    --font-size-sm: 0.95rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.1rem;
    --font-size-xl: 1.3rem;
    --font-size-2xl: 1.6rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3.5rem;
}

/* ============================================
   GLOBAL RESET & BASE STYLES
   ============================================ */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--dark-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

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

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

/* ============================================
   UTILITY CLASSES
   ============================================ */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-narrow {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

.section-lg {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lead {
    font-size: var(--font-size-xl);
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ============================================
   GEOMETRIC SHAPES & DECORATIVE ELEMENTS
   ============================================ */

.shape-blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
    filter: blur(60px);
}

.shape-blob-1 {
    width: 600px;
    height: 600px;
    background: var(--gradient-primary);
    top: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

.shape-blob-2 {
    width: 400px;
    height: 400px;
    background: var(--gradient-accent);
    bottom: -100px;
    left: -100px;
    animation: float 15s ease-in-out infinite reverse;
}

.shape-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    pointer-events: none;
}

.shape-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            90deg,
            rgba(0, 212, 255, 0.05) 0px,
            transparent 1px,
            transparent 50px,
            rgba(0, 212, 255, 0.05) 51px
        ),
        repeating-linear-gradient(
            0deg,
            rgba(0, 212, 255, 0.05) 0px,
            transparent 1px,
            transparent 50px,
            rgba(0, 212, 255, 0.05) 51px
        );
    pointer-events: none;
    opacity: 0.3;
}

.shape-diagonal {
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 30px,
        rgba(0, 212, 255, 0.03) 30px,
        rgba(0, 212, 255, 0.03) 32px
    );
    pointer-events: none;
}

.shape-circle {
    position: absolute;
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 50%;
    pointer-events: none;
}

.shape-hexagon {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(0, 212, 255, 0.1);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    pointer-events: none;
}

/* ============================================
   ANIMATIONS & KEYFRAMES
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes borderGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 212, 255, 0.5);
    }
}

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.animate-on-scroll.visible {
    opacity: 1;
}

.fade-in {
    animation: fadeIn var(--transition-slow) ease forwards;
}

.fade-in-left {
    animation: fadeInLeft var(--transition-slow) ease forwards;
}

.fade-in-right {
    animation: fadeInRight var(--transition-slow) ease forwards;
}

.fade-in-up {
    animation: fadeInUp var(--transition-slow) ease forwards;
}

.scale-in {
    animation: scaleIn var(--transition-slow) ease forwards;
}

/* Animation delays for staggered effects */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 15px 35px;
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform var(--transition-base);
    z-index: -1;
}

.btn:hover::before {
    transform: translateX(0);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-primary);
}

.btn-large {
    padding: 18px 45px;
    font-size: var(--font-size-lg);
}

.btn-small {
    padding: 10px 25px;
    font-size: var(--font-size-sm);
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background: var(--gradient-dark);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.card:hover::before {
    opacity: 1;
}

.card__image {
    width: 100%;
    height: 250px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--spacing-md);
    position: relative;
}

.card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card__image img {
    transform: scale(1.1);
}

.card__content {
    position: relative;
    z-index: 2;
}

.card__title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.card__description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.card__meta {
    display: flex;
    gap: var(--spacing-md);
    font-size: var(--font-size-sm);
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.card__meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

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

.grid--4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

@media (min-width: 768px) {
    .grid--2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid--4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   SECTION HEADER
   ============================================ */

.section__header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
    z-index: 2;
}

.section__subtitle {
    font-size: var(--font-size-sm);
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    display: inline-block;
}

.section__title {
    font-size: var(--font-size-5xl);
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
}

.section__description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Accent line decoration */
.section__accent {
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    margin: var(--spacing-md) auto;
    border-radius: 2px;
}

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--primary);
    transition: color var(--transition-base);
}

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

.breadcrumb span {
    color: var(--text-muted);
}

/* ============================================
   BADGES & TAGS
   ============================================ */

.badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-pill);
    color: var(--primary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: all var(--transition-base);
}

.badge:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.tag {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: var(--font-size-xs);
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all var(--transition-base);
}

.tag:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: var(--spacing-xl);
    flex-wrap: wrap;
}

.page-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-base);
    font-weight: 600;
}

.page-btn:hover,
.page-btn.active {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* ============================================
   LOADING & SKELETON STATES
   ============================================ */

.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 212, 255, 0.1),
        transparent
    );
    animation: shimmer 2s infinite;
}

.skeleton {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    animation: pulse 2s ease-in-out infinite;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    
    h1 { font-size: var(--font-size-4xl); }
    h2 { font-size: var(--font-size-3xl); }
    
    .section__title {
        font-size: var(--font-size-4xl);
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 2rem;
        --spacing-xl: 3rem;
    }
    
    h1 { font-size: var(--font-size-3xl); }
    h2 { font-size: var(--font-size-2xl); }
    
    .section__title {
        font-size: var(--font-size-3xl);
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .btn {
        padding: 12px 28px;
    }
    
    .btn-large {
        padding: 15px 35px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: var(--font-size-2xl); }
    
    .section__title {
        font-size: var(--font-size-2xl);
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

*:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    body {
        background: white;
        color: black;
    }
    
    .no-print {
        display: none !important;
    }
}

/* ============================================
   ENHANCED RESPONSIVE DESIGN
   ============================================ */

/* Tablet Styles (768px - 1024px) */
@media (max-width: 1024px) {
    /* Improved spacing */
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
        --font-size-5xl: 2.8rem;
        --font-size-4xl: 2.2rem;
        --font-size-3xl: 1.8rem;
    }
    
    .section-lg {
        padding: 70px 0;
    }
    
    /* Grid adjustments */
    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* Card adjustments */
    .card__image {
        height: 200px;
    }
    
    /* Button adjustments */
    .btn-large {
        padding: 16px 35px;
        font-size: 1rem;
    }
    
    /* Shape size reductions */
    .shape-blob-1 {
        width: 400px;
        height: 400px;
    }
    
    .shape-blob-2 {
        width: 300px;
        height: 300px;
    }
    
    /* Header adjustments */
    .archive-header .page-title {
        font-size: 2.5rem;
    }
    
    .archive-header .page-subtitle {
        font-size: 1.1rem;
    }
}

/* Mobile Styles (480px - 768px) */
@media (max-width: 768px) {
    /* More aggressive spacing */
    :root {
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --font-size-5xl: 2.2rem;
        --font-size-4xl: 1.8rem;
        --font-size-3xl: 1.5rem;
        --font-size-2xl: 1.3rem;
        --font-size-xl: 1.1rem;
    }
    
    .section {
        padding: var(--spacing-xl) 0;
    }
    
    .section-lg {
        padding: 50px 0;
    }
    
    /* Single column layouts on mobile */
    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* Card mobile optimizations */
    .card {
        padding: 20px;
    }
    
    .card__image {
        height: 180px;
    }
    
    /* Button full width on mobile */
    .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .btn-large {
        padding: 18px 25px;
    }
    
    /* Breadcrumb adjustments */
    .breadcrumb {
        font-size: 0.85rem;
        justify-content: flex-start;
    }
    
    /* Header adjustments */
    .archive-header {
        padding: 50px 0 30px;
    }
    
    .archive-header .page-title {
        font-size: 2rem;
        margin: 15px 0;
    }
    
    .archive-header .page-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    /* Hide some decorative elements on mobile */
    .shape-grid,
    .shape-diagonal {
        opacity: 0.1;
    }
    
    /* Section title adjustments */
    .section__title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .section__description {
        font-size: 1rem;
    }
    
    /* Pagination adjustments */
    .pagination {
        gap: 5px;
    }
    
    .page-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* Small Mobile Styles (up to 480px) */
@media (max-width: 480px) {
    /* Extreme mobile optimizations */
    :root {
        --spacing-xs: 0.25rem;
        --spacing-sm: 0.5rem;
        --spacing-md: 0.75rem;
        --font-size-5xl: 1.8rem;
        --font-size-4xl: 1.5rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Typography for tiny screens */
    h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    /* Archive header on small screens */
    .archive-header .page-title {
        font-size: 1.8rem;
    }
    
    .archive-header .page-subtitle {
        font-size: 0.95rem;
    }
    
    /* Card optimizations */
    .card {
        padding: 15px;
    }
    
    .card__title {
        font-size: 1.3rem;
    }
    
    .card__description {
        font-size: 0.9rem;
    }
    
    /* Button adjustments */
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    /* Section adjustments */
    .section__header {
        margin-bottom: var(--spacing-lg);
    }
    
    .section__title {
        font-size: 1.8rem;
    }
    
    .section__subtitle {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
    
    /* Meta information */
    .card__meta {
        font-size: 0.8rem;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    /* Pagination for tiny screens */
    .pagination {
        justify-content: center;
    }
    
    .page-btn {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
}

/* Landscape orientation fixes */
@media (max-height: 600px) and (orientation: landscape) {
    .section-lg {
        padding: 40px 0;
    }
    
    .archive-header {
        padding: 40px 0 20px;
    }
    
    .card__image {
        height: 150px;
    }
}

/* High DPI screens (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card {
        border-width: 0.5px;
    }
    
    .btn-secondary {
        border-width: 1px;
    }
}

/* Dark mode preferences */
@media (prefers-color-scheme: dark) {
    /* Already dark, but ensure contrast */
    body {
        background: #0a0a0a;
    }
    
    .card {
        background: rgba(255, 255, 255, 0.02);
    }
}

/* Print optimization */
@media print {
    .archive-header {
        background: none !important;
        padding: 20px 0 !important;
    }
    
    .archive-header .page-title {
        color: #000 !important;
    }
    
    .archive-header .page-subtitle {
        color: #666 !important;
    }
    
    .breadcrumb a {
        color: #000 !important;
        text-decoration: underline;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .btn {
        min-height: 44px; /* Apple's minimum touch target */
    }
    
    .page-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Remove hover effects */
    .card:hover {
        transform: none;
    }
    
    .btn:hover::before {
        transform: translateX(-100%);
    }
    
    /* Show active states instead */
    .btn:active {
        transform: scale(0.98);
    }
    
    .card:active {
        background: rgba(0, 212, 255, 0.05);
    }
}

/* Very large screens */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
    
    .container-narrow {
        max-width: 1400px;
    }
    
    .section-lg {
        padding: 120px 0;
    }
}

/* Foldable devices */
@media (max-width: 280px) {
    /* Support for very small screens */
    :root {
        --font-size-base: 0.9rem;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .archive-header .page-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
}

/* Archive Header Responsive Fixes */
@media (max-width: 768px) {
    .archive-header {
        padding: 50px 0 30px;
    }
    
    .archive-header .page-title {
        font-size: 2.2rem;
        margin: 15px 0;
        word-wrap: break-word;
    }
    
    .archive-header .page-subtitle {
        font-size: 1.1rem;
        line-height: 1.5;
    }
    
    .archive-header .breadcrumb {
        font-size: 0.9rem;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .archive-header .page-title {
        font-size: 1.8rem;
    }
    
    .archive-header .page-subtitle {
        font-size: 1rem;
    }
    
    .archive-header .breadcrumb {
        font-size: 0.85rem;
    }
}