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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fcfcfc;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.logo-image {
    height: 40px;
    width: auto;
}

.logo h1 {
    font-size: 1.5rem;
    color: #1b8e2d; /* GroningenPHP Green */
    font-weight: 700;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-menu a {
    color: #444;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #1b8e2d;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #666;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #1b8e2d;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Intro Section */
.intro-section {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.intro-section h2 {
    color: #1b8e2d;
    margin-bottom: 1rem;
}

.instruction-box {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 5px solid #1b8e2d;
}

.lead {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.rules-box {
    background-color: #e8f5e9;
    color: #1b8e2d;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.dynamic-instruction-box {
    margin: 1.5rem 0;
    background-color: #2d3748;
    color: #e2e8f0;
    padding: 1.25rem;
    border-radius: 6px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.dynamic-row {
    margin-bottom: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.dynamic-row:last-child {
    margin-bottom: 0;
}

.static-text {
    color: #a0aec0;
    margin-right: 10px;
    white-space: nowrap;
}

.typing-text {
    color: #68d391; /* Light green */
    font-weight: bold;
    border-right: 2px solid #68d391; /* The cursor */
    padding-right: 2px;
    animation: blink-cursor 0.75s step-end infinite;
    white-space: pre-wrap;
    min-height: 1.2em;
}

@keyframes blink-cursor {
    from, to {
        border-color: transparent
    }
    50% {
        border-color: #68d391
    }
}

/* Mobile check for the typing text */
@media (max-width: 600px) {
    .dynamic-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

.examples-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

@media (max-width: 768px) {
    .examples-grid {
        grid-template-columns: 1fr;
    }
}

.example {
    padding: 1rem;
    border-radius: 4px;
}

.example.bad {
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
}

.example.good {
    background-color: #f1f8e9;
    border: 1px solid #c8e6c9;
}

.tips-list {
    list-style: disc;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.troubleshoot {
    font-style: italic;
    color: #666;
}

.links-box {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1.5rem;
}

.link-column {
    flex: 1;
    min-width: 250px;
}

.link-column h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.25rem;
}

.link-column ul li {
    margin-bottom: 0.25rem;
}

.link-column a {
    color: #1b8e2d;
    text-decoration: underline;
}

.link-column a:hover {
    color: #145a1c;
}

.divider {
    border: 0;
    height: 1px;
    background: #e0e0e0;
    margin: 2rem 0;
}

/* Prompts Section */
.prompts-section h2 {
    text-align: center;
    color: #333;
    margin-bottom: 0.5rem;
}

.subtext {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

.prompts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

/* --- UPDATED CARD STYLES --- */
.prompt-card {
    background: white;
    border: 1px solid #e0e0e0; /* Softer border */
    border-radius: 8px;
    padding: 0;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Ensures content respects rounded corners */
}

.prompt-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08); /* More elegant shadow */
    border-color: #ccc;
}

.prompt-header {
    background-color: #f8f9fa; /* Lighter, cleaner header */
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eaeaea;
}

.prompt-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #2d3748;
}

.copy-btn {
    background-color: white;
    border: 1px solid #d1d5db;
    color: #4b5563;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.copy-btn:hover {
    background-color: #1b8e2d;
    color: white;
    border-color: #1b8e2d;
    box-shadow: 0 2px 4px rgba(27, 142, 45, 0.2);
}

.prompt-content {
    padding: 1.25rem;
    /* Changed from Courier to System Sans-Serif for readability */
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.6;

    /* THE FIX: 'pre-line' collapses the indentation from your HTML file
       but keeps the line breaks for your lists. */
    white-space: pre-line;

    flex-grow: 1;
}
/* --------------------------- */

/* Toast Notification */
.toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 16px;
    position: fixed;
    z-index: 1001;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
}

.toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .prompts-grid {
        grid-template-columns: 1fr;
    }
}
