/**
 * Emotive Engine - Shared Example Styles
 * Brand-consistent styling for all example pages
 */

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #1a1a1a;
    color: #F2F1F1;
    min-height: 100vh;
    padding: 40px 20px;
}

/* Header with logo */
.example-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    justify-content: center;
}

.example-logo {
    width: 60px;
    height: auto;
    filter: brightness(0) invert(1);
}

.example-title {
    font-size: 32px;
    font-weight: 600;
    background: linear-gradient(135deg, #DD4A9A 0%, #4090CE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.example-subtitle {
    color: #B8B8B8;
    font-size: 14px;
    text-align: center;
    margin-bottom: 30px;
}

/* Canvas styling */
canvas {
    border: 2px solid rgba(221, 74, 154, 0.3);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 8px 32px rgba(221, 74, 154, 0.15);
}

/* Button styling */
button {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    background: #DD4A9A;
    color: #F2F1F1;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(221, 74, 154, 0.3);
}

button:hover {
    background: rgba(221, 74, 154, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(221, 74, 154, 0.4);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Secondary button variant */
button.secondary {
    background: rgba(64, 144, 206, 0.2);
    border: 1px solid rgba(64, 144, 206, 0.3);
}

button.secondary:hover {
    background: rgba(64, 144, 206, 0.3);
}

/* Info boxes */
.example-info {
    margin-top: 40px;
    padding: 20px;
    background: rgba(221, 74, 154, 0.1);
    border: 1px solid rgba(221, 74, 154, 0.3);
    border-radius: 8px;
    color: #B8B8B8;
    font-size: 14px;
    line-height: 1.6;
}

.example-info code {
    background: rgba(0, 0, 0, 0.4);
    padding: 2px 6px;
    border-radius: 4px;
    color: #84CFC5;
    font-family: 'Courier New', monospace;
}

/* Control groups */
.example-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0;
}

.control-group {
    background: rgba(42, 42, 42, 0.6);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(242, 241, 241, 0.1);
}

.control-group h3 {
    color: #DD4A9A;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

/* Status indicators */
.status {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.status.success {
    background: rgba(132, 207, 197, 0.2);
    border: 1px solid rgba(132, 207, 197, 0.3);
    color: #84CFC5;
}

.status.error {
    background: rgba(221, 74, 154, 0.2);
    border: 1px solid rgba(221, 74, 154, 0.3);
    color: #DD4A9A;
}

.status.info {
    background: rgba(64, 144, 206, 0.2);
    border: 1px solid rgba(64, 144, 206, 0.3);
    color: #4090CE;
}

/* Links */
a {
    color: #DD4A9A;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #4090CE;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }

    .example-title {
        font-size: 24px;
    }

    .example-header {
        flex-direction: column;
        gap: 10px;
    }

    .example-logo {
        width: 40px;
    }

    canvas {
        max-width: 100%;
        height: auto;
    }

    button {
        padding: 10px 20px;
        font-size: 14px;
    }
}
