:root {
    --background-light: #f0f2f5;
    --blueprint-blue: #64b5f6; /* Desaturated cool blue */
    --accent-orange: #fb8c00; /* Subtle warning orange */
    --text-primary: #333333;
    --text-secondary: #606060;
    --border-light: #d0d2d5;
    --card-background: #ffffff;
    --grid-line: #e0e2e5; /* Slightly darker than background for subtle grid */
    --font-heading: 'Archivo Black', sans-serif;
    --font-body: 'IBM Plex Mono', monospace;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

body {
    font-family: var(--font-body);
    margin: 0;
    padding: 20px;
    background-color: var(--background-light);
    color: var(--text-primary);
    line-height: 1.6;
    animation: fadeIn 0.8s ease-out;
    background-image: 
        linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
    background-size: 20px 20px;
}

header {
    text-align: center;
    margin-bottom: 60px;
    padding: 30px 20px;
    border: 1px solid var(--blueprint-blue);
    background-color: var(--card-background);
    box-shadow: 0 0 15px rgba(100, 181, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.main-nav {
    margin-bottom: 20px;
}

.main-nav a {
    font-family: var(--font-body);
    font-weight: 700;
    text-decoration: none;
    color: var(--text-secondary);
    margin: 0 15px;
    transition: color 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--blueprint-blue);
}

h1 {
    font-family: var(--font-heading);
    color: var(--blueprint-blue);
    font-size: 3.8em;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

header p {
    font-size: 1.1em;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 10px auto 30px auto;
}

.controls {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.controls input[type="text"],
.controls select {
    background-color: var(--background-light);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    padding: 12px 18px;
    font-family: var(--font-body);
    font-size: 1em;
    box-shadow: none;
    transition: all 0.3s ease;
}

.controls input[type="text"]::placeholder {
    color: var(--text-secondary);
}

.controls input[type="text"]:focus,
.controls select:focus {
    border-color: var(--blueprint-blue);
    box-shadow: 0 0 10px rgba(100, 181, 246, 0.3);
    outline: none;
}

#metadata-display {
    margin-top: 40px;
    font-size: 1em;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#metadata-display p {
    margin: 0;
}

#project-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    max-width: 1200px;
    margin: 0 auto;
    gap: 25px;
}

.project-card {
    background-color: var(--card-background);
    border: 1px solid var(--border-light);
    padding: 25px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(100, 181, 246, 0.15);
    border-color: var(--blueprint-blue);
}

.project-card h2 {
    font-family: var(--font-heading);
    color: var(--blueprint-blue);
    margin-top: 0;
    font-size: 1.8em;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.tags {
    margin-top: 10px;
    margin-bottom: 15px;
}

.tag, .reason {
    display: inline-block;
    background-color: var(--border-light);
    color: var(--text-secondary);
    padding: 5px 12px;
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 0.8em;
    font-weight: 400;
    text-transform: uppercase;
}

.reason {
    background-color: var(--accent-orange);
    color: var(--card-background);
}

.attempts-details {
    border-left: 3px solid var(--blueprint-blue);
    padding-left: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
    background-color: rgba(100, 181, 246, 0.05);
}

.attempts-details h3 {
    font-family: var(--font-body);
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
    font-weight: 700;
}

.attempt {
    padding: 0;
    margin-bottom: 10px;
}

.attempt:last-child {
    margin-bottom: 0;
}

.attempt p {
    margin: 5px 0;
}

a {
    color: var(--blueprint-blue);
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* About Page Styles */
#about-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--card-background);
    padding: 30px 40px;
    border: 1px solid var(--border-light);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.about-section {
    margin-bottom: 30px;
}

.about-section h2 {
    font-family: var(--font-heading);
    color: var(--blueprint-blue);
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
}

.about-section ul {
    list-style-type: '→ ';
    padding-left: 20px;
}

.back-link {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.1em;
}

/* Floating Action Button Placeholder */
/* Hidden for now - re-enable when actual button integrated
.floating-action-button-placeholder {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--accent-orange);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
     This can be replaced by the actual Buy Me a Coffee icon/widget
    content: '☕'; 
}
*/

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

    h1 {
        font-size: 2.5em;
    }

    header {
        margin-bottom: 40px;
        padding: 20px;
    }

    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    #project-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #about-content {
        padding: 20px;
    }
}
