/* Styles spécifiques à UE4 - L'Oracle (Vert Matrix) */

/* Variables de couleur UE4 */
:root {
    --ue4-primary: #00FF41;
    --ue4-secondary: #0D0D0D;
    --ue4-dark: #003B00;
    --ue4-accent: #E8E8E8;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ue4-secondary) 0%, #1a1a1a 100%);
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
    color: var(--ue4-accent);
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--ue4-primary);
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--ue4-primary);
}

.matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: 1;
}

/* Présentation Section */
.presentation-section {
    padding: 80px 20px;
    background: var(--ue4-secondary);
    color: var(--ue4-accent);
}

.presentation-content {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.character-image {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ue4-dark);
    border: 2px solid var(--ue4-primary);
    border-radius: 10px;
}

.character-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.placeholder {
    color: var(--ue4-primary);
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
}

.character-intro h2 {
    color: var(--ue4-primary);
    margin-bottom: 20px;
}

.ue-description h3 {
    color: var(--ue4-primary);
    margin-bottom: 20px;
}

/* Projets Section */
.projets-section {
    padding: 80px 20px;
    background: #1a1a1a;
    color: var(--ue4-accent);
}

.projets-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--ue4-primary);
}

.projets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.projet-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--ue4-primary);
    border-radius: 10px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.3);
}

.projet-card h3 {
    color: var(--ue4-primary);
    margin-bottom: 15px;
}

/* Citation Section */
.citation-section {
    padding: 80px 20px;
    background: var(--ue4-secondary);
    color: var(--ue4-accent);
}

.citation-content {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.character-portrait {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ue4-dark);
    border: 2px solid var(--ue4-primary);
    border-radius: 10px;
}

.character-portrait img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.citation {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--ue4-primary);
    text-align: center;
    flex: 1;
}

.citation cite {
    display: block;
    margin-top: 20px;
    color: var(--ue4-accent);
    font-size: 1.2rem;
}

/* Navigation Section */
.navigation-section {
    padding: 60px 20px;
    background: #1a1a1a;
    color: var(--ue4-accent);
}

.nav-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.back-btn {
    background: var(--ue4-primary);
    color: var(--ue4-secondary);
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.back-btn:hover {
    background: var(--ue4-accent);
    color: var(--ue4-secondary);
}

.ue-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.ue-btn {
    background: rgba(0, 255, 65, 0.1);
    color: var(--ue4-primary);
    padding: 10px 20px;
    border: 1px solid var(--ue4-primary);
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ue-btn:hover {
    background: var(--ue4-primary);
    color: var(--ue4-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .presentation-content {
        flex-direction: column;
        text-align: center;
    }

    .citation-content {
        flex-direction: column;
        text-align: center;
    }

    .projets-grid {
        grid-template-columns: 1fr;
    }

    .ue-links {
        flex-direction: column;
        align-items: center;
    }
}

/* Interface SQL Junior DEV */
.sql-interface-section {
    padding: 80px 20px;
    background: #0b1b0b;
    color: var(--ue4-accent);
}

.interface-header {
    text-align: center;
    margin-bottom: 40px;
}

.interface-header h2 {
    color: var(--ue4-primary);
    margin-bottom: 10px;
}

.sql-interface-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.sql-panel,
.result-panel {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--ue4-primary);
    border-radius: 12px;
    padding: 30px;
    min-height: 520px;
}

.result-panel {
    transition: min-height 0.25s ease, transform 0.25s ease;
}

.panel-header h3 {
    color: var(--ue4-primary);
    margin-bottom: 20px;
}

.sql-editor {
    width: 100%;
    min-height: 180px;
    border-radius: 10px;
    border: 1px solid #1d4d1d;
    background: #071207;
    color: var(--ue4-accent);
    padding: 20px;
    font-family: monospace;
    resize: vertical;
}

.sql-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.btn {
    padding: 12px 20px;
    border: 1px solid var(--ue4-primary);
    background: transparent;
    color: var(--ue4-accent);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.btn:hover {
    background: var(--ue4-primary);
    color: var(--ue4-secondary);
}

.btn.primary {
    background: var(--ue4-primary);
    color: var(--ue4-secondary);
}

.btn.secondary {
    background: rgba(0, 255, 65, 0.1);
    color: var(--ue4-accent);
}

.quick-queries {
    margin-top: 30px;
}

.quick-queries h4,
.table-list h4,
.relation-map h4 {
    margin-bottom: 15px;
    color: var(--ue4-primary);
}

.quick-queries button {
    width: 100%;
    text-align: left;
}

.query-result {
    min-height: 260px;
    max-height: 420px;
    background: #071207;
    border: 1px solid #145214;
    border-radius: 10px;
    padding: 20px;
    overflow-x: auto;
    overflow-y: auto;
    transition: min-height 0.25s ease;
}

.query-result table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.query-result th,
.query-result td {
    border: 1px solid #143214;
    padding: 10px;
    text-align: left;
    word-break: break-word;
}

.query-result th {
    background: rgba(0, 255, 65, 0.1);
    color: var(--ue4-primary);
}

.table-list,
.relation-map,
.sql-note {
    margin-top: 30px;
}

.table-list ul,
.relation-map ul {
    list-style: none;
    padding: 0;
}

.table-list li,
.relation-map li {
    margin-bottom: 10px;
    color: var(--ue4-accent);
}

.sql-note p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #b5ffb5;
}

.sql-message {
    margin: 0;
    color: var(--ue4-accent);
    line-height: 1.6;
}

.sql-message-error {
    color: #ff7a7a;
}

.sql-message-info {
    color: #a8ffad;
}

@media (max-width: 1024px) {
    .sql-interface-grid {
        grid-template-columns: 1fr;
    }
}
