﻿/*
===========================================
KATE OWEN GALLERY - CLEAN CMS MODERN CSS
===========================================
Minimal, clean enhancement of existing CMS pages
Works with existing style.css and ko.css
*/

/* ========================================
   KATE OWEN GALLERY - MASTER CMS MODERN CSS
   ======================================== */

/* CSS Variables for consistency */
:root {

    --accent-orange: #FF7700;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --bg-dark: #111111;
    --border-subtle: #333333;
    --font-primary: "Open Sans", sans-serif;



    --primary-black: #000000;
    --primary-orange: #F16609;
    --secondary-orange: #FF8820;
    --dark-bg: #111111;
    --darker-bg: #0a0a0a;
    --light-bg: #1a1a1a;
    --border-color: #333333;
    --text-white: #ffffff;
    --text-light: #cccccc;
    --text-muted: #666666;
    
    --font-family: "Open Sans", sans-serif;
    --line-height: 1.7;
    
    --border-radius: 12px;
    --border-radius-large: 16px;
    --border-radius-small: 8px;
    
    --spacing-xs: 10px;
    --spacing-sm: 15px;
    --spacing-md: 20px;
    --spacing-lg: 30px;
    --spacing-xl: 40px;
    --spacing-xxl: 60px;
    
    --shadow-light: 0 4px 20px rgba(0,0,0,0.3);
    --shadow-medium: 0 8px 25px rgba(241, 102, 9, 0.3);
    
    --transition: all 0.3s ease;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

* {
    box-sizing: border-box;
}

/* ========================================
   LAYOUT COMPONENTS
   ======================================== */

/* Container */
.cms-container {
    background-color: var(--primary-black);
    color: var(--text-white);
    font-family: var(--font-family);
    line-height: var(--line-height);
    min-height: 100vh;
}

.cms-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-xxl) var(--spacing-md);
}

/* ========================================
   NAVIGATION COMPONENTS
   ======================================== */

/* Breadcrumb */
.cms-breadcrumb {
    background: var(--light-bg);
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.cms-breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.9rem;
}

.cms-breadcrumb a {
    color: var(--primary-orange);
    text-decoration: none;
    transition: var(--transition);
}

.cms-breadcrumb a:hover {
    color: var(--secondary-orange);
}

.cms-breadcrumb-separator {
    color: var(--text-muted);
}

/* ========================================
   HEADER COMPONENTS
   ======================================== */

/* Page Header */
.cms-header {
    background: linear-gradient(135deg, var(--primary-black), var(--light-bg));
    padding: var(--spacing-xxl) var(--spacing-md);
    text-align: center;
    border-bottom: 3px solid var(--primary-orange);
}

.cms-title {
    font-size: 3rem;
    color: var(--primary-orange);
    margin-bottom: var(--spacing-md);
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.cms-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    font-style: italic;
}

.cms-meta {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    margin-top: var(--spacing-md);
}

.cms-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-orange);
    font-size: 0.9rem;
}

/* ========================================
   CONTENT SECTIONS
   ======================================== */

/* Section */
.cms-section {
    margin-bottom: var(--spacing-xxl);
    background: var(--dark-bg);
    border-radius: var(--border-radius-large);
    padding: var(--spacing-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

.cms-section-title {
    font-size: 1.8rem;
    color: var(--primary-orange);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.cms-section-content {
    font-size: 1.1rem;
    color: var(--text-white);
    line-height: 1.8;
}

.cms-section-content p {
    margin-bottom: var(--spacing-md);
}

/* ========================================
   SPECIAL CONTENT BLOCKS
   ======================================== */

/* Highlight Box */
.cms-highlight {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    margin: var(--spacing-lg) 0;
    border-left: 5px solid var(--text-white);
}

.cms-highlight p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Story Card */
.cms-story-card {
    background: var(--darker-bg);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
    border-left: 4px solid var(--primary-orange);
    position: relative;
    overflow: hidden;
}

.cms-story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-orange), transparent);
}

.cms-story-narrator {
    font-size: 1rem;
    color: var(--primary-orange);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* Attribution */
.cms-attribution {
    background: var(--light-bg);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-small);
    margin-top: var(--spacing-xl);
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    border: 1px solid var(--border-color);
}

/* ========================================
   GRID LAYOUTS
   ======================================== */

/* Grid Container */
.cms-grid {
    display: grid;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.cms-grid-2 { grid-template-columns: repeat(2, 1fr); }
.cms-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cms-grid-4 { grid-template-columns: repeat(4, 1fr); }
.cms-grid-6 { grid-template-columns: repeat(6, 1fr); }

.cms-grid-auto { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* Grid Cards */
.cms-card {
    background: #222222;
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.cms-card:hover {
    background: var(--border-color);
    border-color: var(--primary-orange);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.cms-card a {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 500;
}

.cms-card a:hover {
    color: var(--secondary-orange);
}

/* ========================================
   ACCORDION COMPONENTS
   ======================================== */

.cms-accordion {
    background: var(--dark-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.cms-accordion-header {
    padding: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--dark-bg), var(--light-bg));
    transition: var(--transition);
    border: none;
    width: 100%;
    text-align: left;
    color: var(--text-white);
    font-family: var(--font-family);
}

.cms-accordion-header:hover {
    background: linear-gradient(135deg, var(--light-bg), #222222);
}

.cms-accordion.active .cms-accordion-header {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: var(--text-white);
}

.cms-accordion-title-wrapper {
    display: flex;
    align-items: center;
    gap: var(--border-radius);
}

.cms-accordion-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
}

.cms-accordion-subtitle {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 5px 0 0 32px;
    opacity: 0.8;
}

.cms-accordion.active .cms-accordion-subtitle {
    color: var(--text-white);
}

.cms-accordion-arrow {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.cms-accordion.active .cms-accordion-arrow {
    transform: rotate(180deg);
}

.cms-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--darker-bg);
}

.cms-accordion.active .cms-accordion-content {
    max-height: 500px;
}

.cms-accordion-links {
    padding: var(--spacing-md) 25px 25px;
}

.cms-accordion-link {
    display: block;
    padding: var(--spacing-xs) var(--spacing-sm);
    color: var(--text-light);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: var(--transition);
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.cms-accordion-link:hover {
    color: var(--primary-orange);
    background: rgba(241, 102, 9, 0.1);
    border-left-color: var(--primary-orange);
    padding-left: var(--spacing-md);
}

/* ========================================
   QUICK ACCESS COMPONENTS
   ======================================== */

.cms-quick-access {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, var(--dark-bg), var(--light-bg));
    border-radius: var(--border-radius-large);
    border: 1px solid var(--border-color);
}

.cms-quick-link {
    background: #222222;
    padding: var(--spacing-md) var(--spacing-sm);
    border-radius: var(--border-radius-small);
    text-align: center;
    text-decoration: none;
    color: var(--text-white);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.cms-quick-link:hover {
    background: var(--primary-orange);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.cms-quick-link-icon {
    display: block;
    margin: 0 auto var(--spacing-xs);
}

.cms-quick-link-text {
    font-size: 0.85rem;
    font-weight: 500;
}

/* ========================================
   ICON COMPONENTS
   ======================================== */

.cms-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: var(--transition);
}

.cms-icon-sm { width: 16px; height: 16px; }
.cms-icon-md { width: 20px; height: 20px; }
.cms-icon-lg { width: 24px; height: 24px; }

/* ========================================
   SPECIAL VISUALS
   ======================================== */

.cms-constellation-visual {
    text-align: center;
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg);
    background: radial-gradient(circle at center, var(--light-bg) 0%, var(--primary-black) 100%);
    border-radius: var(--border-radius-large);
    border: 1px solid var(--border-color);
}

.cms-stars {
    font-size: 2rem;
    color: var(--primary-orange);
    margin: var(--spacing-md) 0;
    letter-spacing: var(--spacing-xs);
}

.cms-constellation-label {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: var(--spacing-xs);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .cms-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .cms-grid-6 { grid-template-columns: repeat(3, 1fr); }
    .cms-quick-access { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .cms-title { font-size: 2.2rem; }
    .cms-subtitle { font-size: 1.1rem; }
    .cms-section { padding: 25px; }
    .cms-section-title { font-size: 1.5rem; }
    .cms-meta { flex-direction: column; gap: var(--spacing-sm); }
    
    .cms-grid-2,
    .cms-grid-3,
    .cms-grid-4,
    .cms-grid-6 { 
        grid-template-columns: 1fr; 
        gap: var(--spacing-md);
    }
    
    .cms-quick-access { 
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xs);
        padding: var(--spacing-md);
    }
    
    .cms-accordion-header { padding: var(--spacing-md); }
    .cms-accordion-title { font-size: 1.1rem; }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.cms-text-center { text-align: center; }
.cms-text-left { text-align: left; }
.cms-text-right { text-align: right; }

.cms-mb-sm { margin-bottom: var(--spacing-sm); }
.cms-mb-md { margin-bottom: var(--spacing-md); }
.cms-mb-lg { margin-bottom: var(--spacing-lg); }
.cms-mb-xl { margin-bottom: var(--spacing-xl); }

.cms-mt-sm { margin-top: var(--spacing-sm); }
.cms-mt-md { margin-top: var(--spacing-md); }
.cms-mt-lg { margin-top: var(--spacing-lg); }
.cms-mt-xl { margin-top: var(--spacing-xl); }

.cms-p-sm { padding: var(--spacing-sm); }
.cms-p-md { padding: var(--spacing-md); }
.cms-p-lg { padding: var(--spacing-lg); }
.cms-p-xl { padding: var(--spacing-xl); }

.cms-hidden { display: none; }
.cms-visible { display: block; }















/* ===== CLEAN CONTENT WRAPPER ===== */
.cms-modern-content {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--text-primary);
    background-color: #000000;
    padding: 60px 0;
}

.cms-content-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== SIMPLE TYPOGRAPHY IMPROVEMENTS ===== */

/* Main page title - clean and centered */
.cms-modern-content h1:first-child {
    font-size: 2.8rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-primary);
    letter-spacing: -1px;
}

/* Section headings with subtle orange accent */
.cms-modern-content h2 {
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-primary);
    margin: 60px 0 30px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-orange);
}

.cms-modern-content h3 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--accent-orange);
    margin: 40px 0 20px 0;
}

.cms-modern-content h4 {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 30px 0 15px 0;
}

/* Clean paragraph styling */
.cms-modern-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* First paragraph as subtle lead text */
.cms-modern-content p:first-of-type {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== PRESERVE AND ENHANCE IMAGES ===== */
.cms-modern-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    margin: 30px auto;
    display: block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Don't override existing image positioning */
.cms-modern-content img[style*="float"] {
    margin: 15px !important;
}

.cms-modern-content img[style*="float: left"] {
    margin-right: 25px !important;
}

.cms-modern-content img[style*="float: right"] {
    margin-left: 25px !important;
}

/* ===== CLEAN LINK STYLING ===== */
.cms-modern-content a {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cms-modern-content a:hover {
    color: #FF9500;
    text-decoration: underline;
}

/* ===== SUBTLE EMPHASIS ===== */
.cms-modern-content strong,
.cms-modern-content b {
    color: var(--accent-orange);
    font-weight: 600;
}

.cms-modern-content em,
.cms-modern-content i {
    color: var(--text-secondary);
}

/* ===== CLEAN LIST STYLING ===== */
.cms-modern-content ul,
.cms-modern-content ol {
    margin: 20px 0;
    padding-left: 25px;
}

.cms-modern-content li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--text-primary);
}

/* ===== MINIMAL CONTENT SECTIONS ===== */
.cms-section-break {
    background: var(--bg-dark);
    padding: 40px;
    border-radius: 8px;
    margin: 40px 0;
    border-left: 3px solid var(--accent-orange);
}

/* ===== SIMPLE QUOTE STYLING ===== */
.cms-modern-content blockquote {
    background: var(--bg-dark);
    border-left: 4px solid var(--accent-orange);
    padding: 30px;
    margin: 40px 0;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* ===== CLEAN TABLE STYLING ===== */
.cms-modern-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: var(--bg-dark);
    border-radius: 8px;
    overflow: hidden;
}

.cms-modern-content th {
    background: var(--accent-orange);
    color: white;
    padding: 15px;
    font-weight: 600;
}

.cms-modern-content td {
    padding: 15px;
    border-bottom: 1px solid var(--border-subtle);
}

.cms-modern-content tr:last-child td {
    border-bottom: none;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .cms-content-container {
        padding: 0 15px;
    }
    
    .cms-modern-content h1:first-child {
        font-size: 2.2rem;
    }
    
    .cms-modern-content h2 {
        font-size: 1.6rem;
        margin: 40px 0 20px 0;
    }
    
    .cms-modern-content h3 {
        font-size: 1.3rem;
    }
    
    .cms-modern-content p:first-of-type {
        font-size: 1.1rem;
    }
    
    .cms-section-break {
        padding: 25px;
    }
    
    .cms-modern-content blockquote {
        padding: 20px;
        font-size: 1.1rem;
    }
}

/* ===== COMPATIBILITY WITH EXISTING STYLES ===== */

/* Don't override existing positioning */
.cms-modern-content [style*="text-align"] {
    /* Preserve existing alignment */
}

.cms-modern-content [style*="margin"] {
    /* Preserve existing margins where specified */
}

.cms-modern-content [style*="padding"] {
    /* Preserve existing padding where specified */
}

/* Ensure compatibility with existing gallery styles */
.cms-modern-content .gallery-image,
.cms-modern-content .artwork-image,
.cms-modern-content .artist-image {
    /* Let existing gallery CSS handle these */
    box-shadow: none;
    border-radius: 0;
}

/* ===== UTILITY CLASSES (OPTIONAL USE) ===== */
.cms-highlight {
    background: var(--bg-dark);
    padding: 30px;
    border-radius: 8px;
    border-left: 3px solid var(--accent-orange);
    margin: 30px 0;
}

.cms-center {
    text-align: center;
}

.cms-orange-text {
    color: var(--accent-orange);
}

/* ===== CLEAN GRID (OPTIONAL) ===== */
.cms-simple-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

@media (max-width: 768px) {
    .cms-simple-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}