/**
 * RainerumSim - Index Page Styles
 * Styles for the main menu page
 */

/* === CSS Variables === */
:root {
    --bg-primary: #000000;
    --bg-secondary: rgba(5, 5, 8, 0.98);
    --bg-tertiary: rgba(8, 8, 12, 0.95);
    
    --text-primary: #e0e0e0;
    --text-secondary: #d0d0d0;
    --text-muted: #909090;
    
    --border-dark: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    
    --spacing-sm: 8px;
    --spacing-md: 20px;
    --spacing-lg: 30px;
    --spacing-xl: 40px;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    
    --transition-normal: 0.3s ease;
}

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

/* === Base Styles === */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* === Header === */
header {
    background: var(--bg-secondary);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.9);
}

header h1 {
    font-size: 2.2em;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 500;
}

header p {
    font-size: 1em;
    color: var(--text-secondary);
}

/* === Main Content === */
main {
    flex: 1;
    padding: var(--spacing-xl) var(--spacing-md);
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* === Section Headers === */
.section-title {
    color: var(--text-primary);
    font-size: 1.6em;
    font-weight: 500;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    font-size: 0.95em;
}

/* === Simulations Grid === */
.simulations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

/* === Simulation Card === */
.simulation-card {
    background: var(--bg-tertiary);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-normal);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.simulation-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8);
    border-color: var(--border-light);
}

/* === Simulation Thumbnail === */
.simulation-thumbnail {
    width: 100%;
    height: 200px;
    background: #0a0a0f;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.simulation-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-canvas {
    width: 100%;
    height: 100%;
}

.thumbnail-placeholder {
    font-size: 4em;
    color: rgba(128, 128, 128, 0.3);
}

/* === Simulation Info === */
.simulation-info {
    padding: var(--spacing-md);
}

.simulation-info h2 {
    color: var(--text-primary);
    font-size: 1.3em;
    font-weight: 500;
    margin-bottom: 10px;
}

.simulation-info p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95em;
}

/* === Tags === */
.simulation-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.tag {
    background: rgba(60, 60, 70, 0.3);
    color: var(--text-muted);
    padding: var(--spacing-sm) 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8em;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* === Responsive Design === */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }

    .simulations-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .simulation-thumbnail {
        height: 150px;
    }
}
