/* Global Styles */
:root {
    --primary-color: #5D50C4; /* Deep Purple */
    --secondary-color: #E6E0F8; /* Light Lavender */
    --accent-color: #FF5A5F; /* Coral Red for accents/buttons */
    --text-color: #333333;
    --background-color: #f7f7f7;
    --card-background: #ffffff;
    --border-radius: 12px; /* Slightly larger radius for softer look */
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: 0 6px 20px var(--shadow-color);
}

/* Header & Navigation */
header {
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

header h1 {
    margin: 0;
    font-size: 1.8em;
}

nav {
    display: flex;
    gap: 15px;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 6px;
    transition: background-color 0.2s;
    font-weight: 500;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Account/Auth Container Styling */
#auth-container a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

#auth-container a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#auth-container button, button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
}

#auth-container button:hover, button:not([disabled]):hover {
    background-color: #e84c50;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}
button:active {
    transform: scale(0.98);
}
button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Forms and Inputs */
input[type="text"], input[type="date"], input[type="number"], textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

input[type="text"]:focus, input[type="date"]:focus, input[type="number"]:focus, textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--secondary-color);
    outline: none;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--primary-color);
}

/* Show List Styles (Key Fix for Display) */
#show-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.show-card-wrapper {
    background: var(--card-background);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px var(--shadow-color);
    border-left: 5px solid var(--primary-color);
    transition: transform 0.2s, box-shadow 0.3s;
}

.show-card-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.show-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.show-card img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.show-info {
    flex-grow: 1;
}

.show-card h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: var(--primary-color);
    font-size: 1.4em;
}

.show-card p {
    margin: 2px 0;
    font-size: 0.9em;
    color: #666;
}

.show-actions {
    margin-top: 10px;
}

.show-actions a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9em;
    margin-right: 15px;
    font-weight: 600;
}

/* Detail Pages */
#show-details-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin-top: 15px;
    box-shadow: 0 4px 10px var(--shadow-color);
}

/* Search Page Results (Ensuring clear list display) */
#search-results {
    margin-top: 20px;
}

#search-results h4 {
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 5px;
    margin-top: 25px;
    color: var(--primary-color);
}

#search-results a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

#back-button {
    margin-bottom: 20px;
    background-color: #6c757d;
}
#back-button:hover {
    background-color: #5a6268;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 15px;
    }

    header {
        flex-direction: column;
        text-align: center;
    }

    nav {
        margin-top: 10px;
        justify-content: center;
    }
    
    .show-card {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .show-card img {
        width: 100%;
        height: auto;
        max-height: 150px;
    }
}
