/* Base styles and layout */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100vh;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.hero {
    min-height: 300px;
    background: 
        url('/images/coalton-pattern.png'),
        rgba(255, 255, 255, 0.95);
    background-size: 150px 150px, cover;
    background-repeat: repeat, no-repeat;
    background-blend-mode: multiply;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo {
    height: 80px;
    width: auto;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    max-width: 100%;
}

.hero-content h1 {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
    display: block;
    visibility: visible;
}

.hero-tagline {
    font-size: 18px;
    color: #4a5568;
    margin-bottom: 12px;
    display: block;
    visibility: visible;
}

.hero-features {
    list-style: none;
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.hero-features li {
    font-size: 14px;
    color: #718096;
    background: rgba(66, 153, 225, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.hero-cta {
    font-size: 16px;
    color: #4299e1;
    font-weight: 600;
    display: block;
    visibility: visible;
}

/* Example Selector Bar */
.example-selector {
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    padding: 0 30px;
}

.selector-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
}

.selector-content label {
    font-weight: 600;
    color: #2d3748;
}

/* Main Playground */
.playground {
    flex: 1;
    background: white;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Main Container for Side-by-Side Layout */
.playground-content {
    display: flex;
    flex-direction: row;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Editor Section - Left Half */
.editor-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    border-right: 1px solid #e2e8f0;
}

.toolbar {
    background: #f7fafc;
    padding: 12px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
}

.editor-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.editor-wrapper {
    flex: 1;
    position: relative;
}

/* Output Section - Right Half */
.output-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.output-tabs {
    background: #edf2f7;
    display: flex;
    border-bottom: 1px solid #e2e8f0;
}

.output-container {
    flex: 1;
    position: relative;
    background: #1a202c;
}

.output-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.output-panel.active {
    display: flex;
}

/* Minimal Footer */
.footer {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 12px 30px;
    text-align: center;
    color: #718096;
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer a {
    color: #4299e1;
    text-decoration: none;
}

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