/**
 * CC Framework - Complete Styles
 * VERSION 4.1 - All-in-One CSS for Semantic Room Architecture
 * Anja Zoerner's 12 digital rooms for AI-optimized websites
 * 
 * Includes: Base Framework, Admin UI, Room Gallery, Custom Cursor, Animations, Mobile Fix
 */

/* =================================================================
   CSS VARIABLES & FOUNDATION
   ================================================================= */

:root {
    /* Framework Colors */
    --cc-primary: #1D1459;
    --cc-secondary: #9C8B7C;
    --cc-accent: #00BCD4;
    --cc-text: #333333;
    --cc-text-light: #666666;
    --cc-background: #FFFFFF;
    --cc-border: #E0E0E0;
    
    /* Room Colors - A-L System */
    --room-a-building-plan: #2196F3;
    --room-b-reception-hall: #4CAF50;
    --room-c-brand-core: #FF9800;
    --room-d-offer-zone: #E91E63;
    --room-e-knowledge-wing: #9C27B0;
    --room-f-entertainment-stage: #F44336;
    --room-g-trust-chamber: #607D8B;
    --room-h-security-wing: #795548;
    --room-i-community-garden: #8BC34A;
    --room-j-innovation-lab: #00BCD4;
    --room-k-memory-room: #9E9E9E;
    --room-l-future-port: #3F51B5;
    
    /* Framework Metrics */
    --cc-border-radius: 12px;
    --cc-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --cc-shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --cc-shadow-medium: 0 4px 15px rgba(0,0,0,0.15);
    --cc-shadow-heavy: 0 8px 25px rgba(0,0,0,0.2);
    
    /* Typography */
    --cc-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --cc-font-size-base: 16px;
    --cc-line-height-base: 1.6;
    
    /* Animation Timing */
    --cc-animation-fast: 0.15s;
    --cc-animation-normal: 0.3s;
    --cc-animation-slow: 0.6s;
    --cc-animation-very-slow: 1.2s;
    
    /* Easing Functions */
    --cc-ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
    --cc-ease-decelerate: cubic-bezier(0, 0, 0.2, 1);
    --cc-ease-accelerate: cubic-bezier(0.4, 0, 1, 1);
    --cc-ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Transform Values */
    --cc-scale-small: 1.02;
    --cc-scale-medium: 1.05;
    --cc-scale-large: 1.1;
    --cc-translate-small: 2px;
    --cc-translate-medium: 5px;
    --cc-translate-large: 10px;
}
/* =================================================================
   MOBILE FIX - UNIVERSAL CONTAINER RESET
   ================================================================= */
/* 
html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box;
    font-family: var(--cc-font-family);
    font-size: var(--cc-font-size-base);
    line-height: var(--cc-line-height-base);
}

.site-content, .content-area, .site-main, .hfeed, #page, #content, 
.container:not(.menu-container), .wrapper:not(.nav-wrapper) {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

 Mobile Content Padding
@media screen and (max-width: 768px) {
    .entry-content, .page-content, .post-content, article, main, .content {
        padding: 15px !important;
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}
*/
/* =================================================================
   CC FRAMEWORK CORE CLASSES
   ================================================================= */

.cc-framework {
    font-family: var(--cc-font-family);
    color: var(--cc-text);
    line-height: var(--cc-line-height-base);
}

.cc-framework * {
    box-sizing: border-box;
}

/* =================================================================
   MOBILE MENU FIX
   ================================================================= */
/*
.site-header,
.main-navigation,
.menu-toggle,
.mobile-menu,
.nav-menu,
.primary-menu,
#site-navigation,
.navbar,
.navigation-main {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    z-index: 9999 !important;
}

.menu-toggle,
.mobile-menu-button,
.hamburger,
.nav-toggle {
    display: block !important;
    position: relative !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    border: 2px solid #fff !important;
    color: #fff !important;
    padding: 10px 15px !important;
    margin: 10px !important;
    cursor: pointer !important;
    z-index: 10000 !important;
    box-sizing: border-box !important;
}

@media screen and (max-width: 768px) {
    .nav-menu,
    .primary-menu,
    .mobile-menu-items,
    .menu-main-container,
    .main-navigation ul {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        background: rgba(26, 35, 126, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        border: none !important;
        border-radius: 0 0 15px 15px !important;
        box-shadow: 0 5px 20px rgba(0,0,0,0.3) !important;
        z-index: 9998 !important;
        margin: 0 !important;
        padding: 20px 0 !important;
        box-sizing: border-box !important;
        overflow-y: auto !important;
        max-height: 70vh !important;
    }
    
    .nav-menu li,
    .primary-menu li,
    .mobile-menu-items li,
    .main-navigation li {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
        box-sizing: border-box !important;
    }
    
    .nav-menu a,
    .primary-menu a,
    .mobile-menu-items a,
    .main-navigation a {
        display: block !important;
        width: 100% !important;
        padding: 15px 25px !important;
        color: #fff !important;
        text-decoration: none !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        transition: all 0.3s ease !important;
        box-sizing: border-box !important;
        border-left: 4px solid transparent !important;
    }
    
    .nav-menu a:hover,
    .primary-menu a:hover,
    .mobile-menu-items a:hover {
        background: rgba(255,255,255,0.1) !important;
        border-left-color: #fff !important;
        transform: translateX(5px) !important;
    }
}
*/
/* =================================================================
   SEMANTIC ROOM NAVIGATION
   ================================================================= */

.cc-framework .semantic-room-menu {
    margin: 25px 15px;
    width: calc(100% - 30px);
    box-sizing: border-box;
}

.room-navigation {
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: var(--cc-border-radius);
    overflow: hidden;
    box-shadow: var(--cc-shadow-light);
    background: var(--cc-background);
}

.room-nav-item {
    margin: 0;
    border-bottom: 1px solid var(--cc-border);
    transition: all var(--cc-transition);
    position: relative;
}

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

.room-nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--room-color, var(--cc-primary));
    transform: scaleY(0);
    transition: transform var(--cc-transition);
    transform-origin: bottom;
}

.room-nav-item:hover::before,
.room-nav-item.current-page::before {
    transform: scaleY(1);
}

.room-nav-item a {
    display: block;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--cc-text);
    background: var(--cc-background);
    transition: all var(--cc-transition);
    font-weight: 500;
}

.room-nav-item:hover a {
    background: #f8f9fa;
    transform: translateX(5px);
    color: var(--room-color, var(--cc-primary));
}

.room-nav-item.current-page a {
    background: var(--room-color, var(--cc-primary));
    color: white;
    font-weight: 600;
}

.room-nav-item.current-page a::after {
    content: '◆';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    opacity: 0.8;
}

/* =================================================================
   ROOM OVERVIEW GRID
   ================================================================= */

.room-overview-grid {
    display: grid;
    gap: 15px;
    margin: 20px 15px;
    grid-template-columns: repeat(3, 1fr);
    width: calc(100% - 30px);
    box-sizing: border-box;
}

.room-card {
    padding: 15px;
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-border-radius);
    text-align: center;
    transition: transform var(--cc-transition), box-shadow var(--cc-transition);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--cc-background);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.room-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--room-color, var(--cc-primary));
}

.room-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--cc-shadow-medium);
}

.room-card h3 {
    margin: 15px 0 10px 0;
    color: var(--room-color, var(--cc-primary));
    font-size: 18px;
    font-weight: 600;
}

.room-card p {
    color: var(--cc-text-light);
    font-size: 14px;
    margin: 10px 0;
    flex-grow: 1;
}

.room-count {
    font-size: 12px;
    font-weight: 600;
    margin: 10px 0;
    color: var(--room-color, var(--cc-primary));
}

/* =================================================================
   ROOM CONTENT GALLERY
   ================================================================= */

.room-content-gallery {
    margin: 30px auto;
    max-width: 1200px;
    width: calc(100% - 30px);
    box-sizing: border-box;
    font-family: var(--cc-font-family);
}

.room-content-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: linear-gradient(135deg, var(--room-color, #2196f3) 0%, rgba(255,255,255,0.1) 100%);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    color: white;
}

.room-content-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: cc-pulse-glow 4s ease-in-out infinite;
}

.room-icon-large {
    font-size: 48px;
    margin-bottom: 10px;
    display: block;
    position: relative;
    z-index: 2;
}

.room-content-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.room-content-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
    position: relative;
    z-index: 2;
}

.room-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
    will-change: transform;
    contain: layout style paint;
}

.content-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: cc-fade-in-up 0.6s forwards;
    cursor: pointer;
    border: 2px solid transparent;
    will-change: transform, box-shadow;
    contain: layout style paint;
}

/* Staggered Animation Delays */
.content-card:nth-child(1) { animation-delay: 0.1s; }
.content-card:nth-child(2) { animation-delay: 0.2s; }
.content-card:nth-child(3) { animation-delay: 0.3s; }
.content-card:nth-child(4) { animation-delay: 0.4s; }
.content-card:nth-child(5) { animation-delay: 0.5s; }
.content-card:nth-child(6) { animation-delay: 0.6s; }
.content-card:nth-child(7) { animation-delay: 0.7s; }
.content-card:nth-child(8) { animation-delay: 0.8s; }
.content-card:nth-child(9) { animation-delay: 0.9s; }
.content-card:nth-child(n+10) { animation-delay: 1s; }

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--room-color, #2196f3);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.content-card:hover::before {
    transform: scaleX(1);
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: var(--room-color, #2196f3);
}

.content-type-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.content-card:hover .content-type-icon {
    opacity: 0.8;
}

.content-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
    line-height: 1.3;
    padding-right: 35px;
    transition: color 0.3s ease;
}

.content-card:hover .content-title {
    color: var(--room-color, #2196f3);
}

.content-excerpt {
    font-size: 14px;
    color: #666;
    margin: 10px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #999;
}

.content-date {
    font-size: 12px;
    color: #999;
}

.content-link {
    color: var(--room-color, #2196f3);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    font-size: 13px;
}

.content-link:hover {
    gap: 10px;
    color: var(--room-color-dark, #1976d2);
}

.room-back-nav {
    text-align: center;
    margin: 40px 0;
}

.back-to-rooms {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #f8f9fa;
    border: 2px solid var(--room-color, #2196f3);
    border-radius: 8px;
    text-decoration: none;
    color: var(--room-color, #2196f3);
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-to-rooms:hover {
    background: var(--room-color, #2196f3);
    color: white;
    transform: translateX(-5px);
    text-decoration: none;
}

.room-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    margin: 40px 0;
}

.room-empty-state .empty-icon {
    font-size: 64px;
    opacity: 0.3;
    margin-bottom: 20px;
    display: block;
}

.room-empty-state h3 {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 24px;
}

.room-empty-state p {
    margin: 0;
    color: #999;
    font-size: 16px;
}

/* =================================================================
   BREADCRUMBS
   ================================================================= */

.semantic-breadcrumbs {
    margin: 15px 10px;
    font-size: 14px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: var(--cc-border-radius);
    border-left: 4px solid var(--room-color, var(--cc-primary));
    width: calc(100% - 20px);
    box-sizing: border-box;
}

.semantic-breadcrumbs a {
    color: var(--room-color, var(--cc-primary));
    text-decoration: none;
    font-weight: 500;
    transition: color var(--cc-transition);
}

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

/* =================================================================
   ADMIN DASHBOARD STYLES
   ================================================================= */

.cc-dashboard-card {
    background: white;
    padding: 20px;
    border-radius: var(--cc-border-radius);
    box-shadow: var(--cc-shadow-light);
    transition: transform var(--cc-transition);
}

.cc-dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--cc-shadow-medium);
}

.cc-dashboard-card h2 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
}

.cc-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.cc-export-section,
.cc-import-section {
    background: white;
    padding: 25px;
    border-radius: var(--cc-border-radius);
    box-shadow: var(--cc-shadow-light);
    margin-bottom: 20px;
}

.cc-assignment-issues {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--cc-shadow-light);
    margin: 20px 0;
}

.cc-issue-item {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: start;
    transition: background var(--cc-transition);
}

.cc-issue-item:nth-child(even) {
    background: #f9f9f9;
}

.cc-issue-item:hover {
    background: #f0f8ff;
}

.cc-no-issues {
    text-align: center;
    padding: 40px;
    background: #d4edda;
    border-radius: 8px;
    color: #155724;
    margin: 30px 0;
}

/* =================================================================
   CUSTOM CURSOR STYLES
   ================================================================= */

.cc-custom-cursor {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 60px !important;
    height: 60px !important;
    background: #1D1459 !important;
    border: 2px solid #FFFFFF !important;
    border-radius: 50% !important;
    pointer-events: none !important;
    z-index: 999999 !important;
    transition: all 0.1s ease !important;
    transform: translate(-50%, -50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #FFFFFF !important;
    font-size: 12px !important;
    font-weight: bold !important;
    font-family: var(--cc-font-family) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 15px rgba(29, 20, 89, 0.4) !important;
    opacity: 0 !important;
    will-change: transform, opacity !important;
    contain: layout style paint !important;
}

.cc-custom-cursor.click-active {
    background: #9C8B7C !important;
    border-color: #FFFFFF !important;
    color: #FFFFFF !important;
    transform: translate(-50%, -50%) scale(1.3) !important;
    box-shadow: 0 6px 25px rgba(156, 139, 124, 0.6) !important;
}

.cc-custom-cursor.hover-link {
    background: #FFFFFF !important;
    border: 3px solid #1D1459 !important;
    color: #1D1459 !important;
    transform: translate(-50%, -50%) scale(1.15) !important;
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.8) !important;
    font-weight: 700 !important;
}

.touch-feedback {
    position: fixed !important;
    width: 40px !important;
    height: 40px !important;
    background: radial-gradient(circle, rgba(29, 20, 89, 0.6) 0%, rgba(29, 20, 89, 0.2) 40%, transparent 70%) !important;
    border-radius: 50% !important;
    pointer-events: none !important;
    z-index: 999998 !important;
    animation: cc-touch-ripple 0.6s ease-out forwards !important;
    transform: translate(-50%, -50%) !important;
}

body.cc-cursor-active,
body.cc-cursor-active *,
body.cc-cursor-active *::before,
body.cc-cursor-active *::after {
    cursor: none !important;
}

/* =================================================================
   ROOM-SPECIFIC COLOR ASSIGNMENTS
   ================================================================= */

/* Building Plan - A */
.room-building-plan,
.room-letter-a,
[data-room="building-plan"] { 
    --room-color: var(--room-a-building-plan);
}

/* Reception Hall - B */
.room-reception-hall,
.room-letter-b,
[data-room="reception-hall"] { 
    --room-color: var(--room-b-reception-hall);
}

/* Brand Core - C */
.room-brand-core,
.room-letter-c,
[data-room="brand-core"] { 
    --room-color: var(--room-c-brand-core);
}

/* Offer Zone - D */
.room-offer-zone,
.room-letter-d,
[data-room="offer-zone"] { 
    --room-color: var(--room-d-offer-zone);
}

/* Knowledge Wing - E */
.room-knowledge-wing,
.room-letter-e,
[data-room="knowledge-wing"] { 
    --room-color: var(--room-e-knowledge-wing);
}

/* Entertainment Stage - F */
.room-entertainment-stage,
.room-letter-f,
[data-room="entertainment-stage"] { 
    --room-color: var(--room-f-entertainment-stage);
}

/* Trust Chamber - G */
.room-trust-chamber,
.room-letter-g,
[data-room="trust-chamber"] { 
    --room-color: var(--room-g-trust-chamber);
}

/* Security Wing - H */
.room-security-wing,
.room-letter-h,
[data-room="security-wing"] { 
    --room-color: var(--room-h-security-wing);
}

/* Community Garden - I */
.room-community-garden,
.room-letter-i,
[data-room="community-garden"] { 
    --room-color: var(--room-i-community-garden);
}

/* Innovation Lab - J */
.room-innovation-lab,
.room-letter-j,
[data-room="innovation-lab"] { 
    --room-color: var(--room-j-innovation-lab);
}

/* Memory Room - K */
.room-memory-room,
.room-letter-k,
[data-room="memory-room"] { 
    --room-color: var(--room-k-memory-room);
}

/* Future Port - L */
.room-future-port,
.room-letter-l,
[data-room="future-port"] { 
    --room-color: var(--room-l-future-port);
}

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

@keyframes cc-fade-in-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cc-pulse-glow {
    0%, 100% { 
        transform: scale(0.8); 
        opacity: 0.5; 
    }
    50% { 
        transform: scale(1.2); 
        opacity: 0.8; 
    }
}

@keyframes cc-touch-ripple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

@keyframes cc-haptic-pulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1); 
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.05); 
    }
}

.haptic-feedback {
    animation: cc-haptic-pulse 0.1s ease-in-out !important;
}

/* =================================================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ================================================================= */

@media screen and (max-width: 1024px) {
    .room-overview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin: 15px 10px;
        width: calc(100% - 20px);
    }
    
    .room-card {
        min-height: 180px;
        padding: 12px;
    }
    
    .room-content-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 18px;
    }
    
    .content-card {
        padding: 18px;
    }
    
    .room-content-header {
        padding: 18px;
    }
    
    .room-icon-large {
        font-size: 42px;
    }
}

@media screen and (max-width: 768px) {
    .room-overview-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin: 15px 10px;
        width: calc(100% - 20px);
    }
    
    .semantic-room-menu {
        margin: 15px 10px;
        width: calc(100% - 20px);
    }
    
    .room-nav-item a {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .room-card {
        min-height: 160px;
        padding: 15px;
    }
    
    .semantic-breadcrumbs {
        margin: 10px 5px;
        padding: 10px 12px;
        font-size: 13px;
        width: calc(100% - 10px);
    }
    
    .room-content-gallery {
        margin: 20px auto;
        width: calc(100% - 20px);
    }
    
    .room-content-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .content-card {
        padding: 15px;
    }
    
    .room-content-header {
        padding: 15px;
        margin-bottom: 30px;
    }
    
    .room-content-header h2 {
        font-size: 24px;
    }
    
    .room-icon-large {
        font-size: 36px;
    }
    
    .content-title {
        font-size: 16px;
        padding-right: 30px;
    }
    
    .content-excerpt {
        font-size: 13px;
    }
    
    .content-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .back-to-rooms {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* Mobile Touch Highlights */
    a, button, .btn, .button, 
    .menu-toggle, .mobile-menu-button,
    .room-nav-item a, .room-card a,
    .content-card, .back-to-rooms,
    [role="button"], [tabindex]:not([tabindex="-1"]),
    input[type="submit"], input[type="button"],
    .elementor-button, .wp-block-button__link {
        -webkit-tap-highlight-color: rgba(29, 20, 89, 0.15) !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        -khtml-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
    }
    
    /* Text input areas */
    input[type="text"], input[type="email"], input[type="password"],
    textarea, .wp-block-search__input, .elementor-field-group input,
    [contenteditable="true"] {
        -webkit-user-select: text !important;
        -moz-user-select: text !important;
        -ms-user-select: text !important;
        user-select: text !important;
    }
    
    /* Active state feedback */
    a:active, button:active, .btn:active,
    .room-nav-item a:active, .room-card a:active,
    .content-card:active {
        opacity: 0.8 !important;
        transform: scale(1.02) !important;
        transition: all 0.2s ease !important;
    }
    
    /* Force cursor display on mobile */
    .cc-custom-cursor {
        display: flex !important;
    }
}

@media screen and (max-width: 480px) {
    .room-nav-item a {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .room-card {
        min-height: 140px;
        padding: 12px;
    }
    
    .room-card h3 {
        font-size: 16px;
    }
    
    .room-card p {
        font-size: 13px;
    }
    
    .room-content-gallery {
        width: calc(100% - 10px);
        margin: 15px auto;
    }
    
    .content-card {
        padding: 12px;
    }
    
    .room-content-header {
        padding: 12px;
    }
    
    .room-content-header h2 {
        font-size: 20px;
    }
    
    .room-icon-large {
        font-size: 32px;
    }
    
    .content-title {
        font-size: 15px;
    }
    
    .content-type-icon {
        font-size: 18px;
        top: 12px;
        right: 12px;
    }
    
    .menu-toggle,
    .mobile-menu-button {
        padding: 8px 12px !important;
        margin: 5px !important;
    }
    
    .nav-menu a,
    .primary-menu a {
        padding: 12px 20px !important;
        font-size: 15px !important;
    }
}

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

.cc-text-center { text-align: center; }
.cc-text-left { text-align: left; }
.cc-text-right { text-align: right; }

.cc-margin-small { margin: 10px; }
.cc-margin-medium { margin: 20px; }
.cc-margin-large { margin: 40px; }

.cc-padding-small { padding: 10px; }
.cc-padding-medium { padding: 20px; }
.cc-padding-large { padding: 40px; }

.cc-hidden { display: none !important; }
.cc-visible { display: block !important; }

.cc-room-color { color: var(--room-color, var(--cc-primary)) !important; }
.cc-room-bg { background-color: var(--room-color, var(--cc-primary)) !important; }
.cc-room-border { border-color: var(--room-color, var(--cc-primary)) !important; }

/* Status Indicators */
.cc-status-success { color: #4caf50; font-weight: bold; }
.cc-status-warning { color: #ff9800; font-weight: bold; }
.cc-status-error { color: #f44336; font-weight: bold; }
.cc-status-info { color: var(--cc-primary); font-weight: bold; }

/* Animation Classes */
.cc-fade-in { animation: cc-fade-in-up var(--cc-animation-slow) var(--cc-ease-decelerate); }
.cc-pulse { animation: cc-pulse-glow 4s ease-in-out infinite; }
.cc-stagger-children > * { animation: cc-fade-in-up var(--cc-animation-slow) var(--cc-ease-decelerate); animation-fill-mode: both; }
.cc-stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.cc-stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.cc-stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.cc-stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.cc-stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.cc-stagger-children > *:nth-child(6) { animation-delay: 0.6s; }

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

.room-nav-item a:focus,
.room-card:focus,
.content-card:focus,
.semantic-breadcrumbs a:focus,
.back-to-rooms:focus {
    outline: 2px solid var(--room-color, var(--cc-primary));
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .room-nav-item a,
    .room-card,
    .content-card {
        border: 2px solid var(--room-color, var(--cc-primary));
    }
    
    .cc-custom-cursor {
        border-width: 3px !important;
        box-shadow: 0 0 0 2px rgba(0,0,0,0.8) !important;
    }
}

/* 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;
    }
    
    .room-card:hover,
    .room-nav-item:hover a,
    .content-card:hover,
    .back-to-rooms:hover {
        transform: none;
    }
    
    .cc-custom-cursor,
    .touch-feedback,
    .haptic-feedback {
        animation: none !important;
        transition: none !important;
    }
    
    .cc-custom-cursor.click-active,
    .cc-custom-cursor.hover-link {
        transform: translate(-50%, -50%) !important;
    }
}

/* =================================================================
   DARK MODE SUPPORT
   ================================================================= */

@media (prefers-color-scheme: dark) {
    :root {
        --cc-text: #e0e0e0;
        --cc-text-light: #b0b0b0;
        --cc-background: #1e1e1e;
        --cc-border: #333333;
    }
    
    .room-navigation,
    .room-card,
    .content-card {
        background: var(--cc-background);
        border-color: var(--cc-border);
        color: var(--cc-text);
    }
    
    .room-nav-item a {
        color: var(--cc-text);
        background: var(--cc-background);
    }
    
    .room-nav-item:hover a {
        background: #2a2a2a;
    }
    
    .content-title {
        color: var(--cc-text);
    }
    
    .content-card:hover .content-title {
        color: var(--room-color, #2196f3);
    }
    
    .content-excerpt {
        color: var(--cc-text-light);
    }
    
    .content-meta {
        border-top-color: var(--cc-border);
        color: #999;
    }
    
    .semantic-breadcrumbs {
        background: var(--cc-background);
        color: var(--cc-text);
    }
    
    .room-empty-state {
        background: var(--cc-background);
        color: var(--cc-text-light);
    }
    
    .back-to-rooms {
        background: var(--cc-background);
        color: var(--room-color, #2196f3);
        border-color: var(--room-color, #2196f3);
    }
    
    /* Custom Cursor Dark Mode */
    .cc-custom-cursor {
        background: #9C8B7C !important;
        border-color: #FFFFFF !important;
        color: #1D1459 !important;
        box-shadow: 0 4px 15px rgba(156, 139, 124, 0.4) !important;
    }
    
    .cc-custom-cursor.click-active {
        background: #1D1459 !important;
        color: #FFFFFF !important;
        box-shadow: 0 6px 25px rgba(29, 20, 89, 0.6) !important;
    }
    
    .cc-custom-cursor.hover-link {
        background: #000000 !important;
        border-color: #9C8B7C !important;
        color: #FFFFFF !important;
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.8) !important;
    }
    
    .touch-feedback {
        background: radial-gradient(circle, rgba(156, 139, 124, 0.6) 0%, rgba(156, 139, 124, 0.2) 40%, transparent 70%) !important;
    }
}

/* =================================================================
   PERFORMANCE OPTIMIZATIONS
   ================================================================= */

.room-navigation,
.room-overview-grid,
.room-card,
.room-content-grid,
.content-card {
    will-change: transform;
    contain: layout style paint;
}

.cc-custom-cursor {
    will-change: transform, opacity !important;
    contain: layout style paint !important;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Remove will-change after animation completes */
.cc-animation-complete {
    will-change: auto;
}

/* =================================================================
   BROWSER-SPECIFIC FIXES
   ================================================================= */

/* Safari */
@supports (-webkit-backdrop-filter: blur(10px)) {
    .cc-custom-cursor {
        -webkit-backdrop-filter: blur(10px) !important;
    }
}

/* Fallback for older browsers */
@supports not (backdrop-filter: blur(10px)) {
    .cc-custom-cursor {
        background: rgba(29, 20, 89, 0.95) !important;
    }
    
    .cc-custom-cursor.click-active {
        background: rgba(156, 139, 124, 0.95) !important;
    }
    
    .cc-custom-cursor.hover-link {
        background: rgba(255, 255, 255, 0.95) !important;
    }
}

/* Firefox */
@-moz-document url-prefix() {
    .cc-custom-cursor {
        backdrop-filter: none !important;
        background: rgba(29, 20, 89, 0.95) !important;
    }
}

/* =================================================================
   WORDPRESS COMPATIBILITY
   ================================================================= */

/* WordPress Block Editor Support */
.wp-block {
    cursor: inherit !important;
}

.wp-block a, .wp-block button {
    cursor: pointer !important;
}

body.cc-cursor-active .wp-block a,
body.cc-cursor-active .wp-block button {
    cursor: none !important;
}

/* Elementor Compatibility */
body.cc-cursor-active .elementor-motion-effects-element,
body.cc-cursor-active .elementor-section[data-settings*='cursor'],
body.cc-cursor-active .elementor-section[data-settings*='cursor'] *,
body.cc-cursor-active .elementor-widget[data-settings*='cursor'],
body.cc-cursor-active .elementor-widget[data-settings*='cursor'] *,
body.cc-cursor-active .elementor-column[data-settings*='cursor'],
body.cc-cursor-active .elementor-column[data-settings*='cursor'] * {
    cursor: none !important;
}

/* Twenty Twenty, Twenty Twenty-One, etc. */
/* Legacy theme fixes - NOT needed for modern block themes
   Disabled for Twenty Twenty-Five compatibility
.wp-block-navigation,
.wp-block-navigation__responsive-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
}

.wp-block-navigation__responsive-container-open {
    background: rgba(26, 35, 126, 0.95) !important;
    backdrop-filter: blur(10px) !important;
}
*/

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

@media print {
    .semantic-room-menu,
    .room-overview-grid,
    .cc-custom-cursor,
    .touch-feedback {
        display: none !important;
    }
    
    .room-card,
    .content-card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        break-inside: avoid;
    }
    
    .room-nav-item a {
        color: #000 !important;
        background: #fff !important;
    }
    
    .room-content-header {
        background: white !important;
        color: black !important;
        border: 2px solid var(--room-color, #2196f3);
    }
    
    body.cc-cursor-active,
    body.cc-cursor-active * {
        cursor: auto !important;
    }
    
    /* Reset all animations for print */
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

/* =================================================================
   CUSTOM SCROLLBAR (WEBKIT ONLY)
   ================================================================= */

.room-navigation::-webkit-scrollbar,
.room-content-grid::-webkit-scrollbar {
    width: 8px;
}

.room-navigation::-webkit-scrollbar-track,
.room-content-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.room-navigation::-webkit-scrollbar-thumb,
.room-content-grid::-webkit-scrollbar-thumb {
    background: var(--room-color, #2196f3);
    border-radius: 4px;
}

.room-navigation::-webkit-scrollbar-thumb:hover,
.room-content-grid::-webkit-scrollbar-thumb:hover {
    background: var(--room-color-dark, #1976d2);
}

/* =================================================================
   FRAMEWORK VERSION & DEBUG INFO
   ================================================================= */

.cc-framework::before {
    content: "CC Framework v4.1 - Semantic Room Architecture";
    position: absolute;
    top: -9999px;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}
