/* css/style.css */

/* --- Global Resets & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #3498db; /* Example: Blue */
    --secondary-color: #2ecc71; /* Example: Green */
    --accent-color: #e74c3c; /* Example: Red */
    --text-color: #333;
    --light-text-color: #555;
    --bg-color: #f4f6f8; /* Light grey background */
    --card-bg-color: #ffffff;
    --border-color: #e0e0e0;
    --hover-bg-color: #f0f0f0;
    --player-accent: #1DB954; /* Spotify-like green for player actions */

    --font-family-sans: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --box-shadow-light: 0 2px 8px rgba(0,0,0,0.07);
    --box-shadow-medium: 0 4px 15px rgba(0,0,0,0.1);
}

body {
    font-family: var(--font-family-sans);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: 150px; /* Space for fixed player */
}

/* --- Container --- */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 20px auto;
    padding: 0 15px;
}

/* --- Headings --- */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.75em;
    color: #2c3e50; /* Darker blue-grey for headings */
    line-height: 1.3;
}
h1 { font-size: 2.2em; }
h2 { font-size: 1.8em; }
h3 { font-size: 1.4em; }

/* --- Links --- */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}
a:hover, a:focus {
    color: darken(var(--primary-color), 10%);
    text-decoration: underline;
}

/* --- Buttons (General Styling) --- */
.action-button,
.button-link { /* .button-link for a tags styled as buttons */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: 500;
    color: white;
    background-color: var(--primary-color);
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    white-space: nowrap;
}
.action-button:hover, .button-link:hover {
    background-color: darken(var(--primary-color), 10%);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    color: white;
    text-decoration: none;
}
.action-button svg {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Secondary button style */
.action-button.secondary,
.button-link.secondary {
    background-color: #7f8c8d; /* Grey */
    color: white;
}
.action-button.secondary:hover,
.button-link.secondary:hover {
    background-color: #6c7a7c;
}


/* --- Card Style (for sections) --- */
.card-style {
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius-lg);
    padding: 20px 25px;
    margin-bottom: 25px;
    box-shadow: var(--box-shadow-light);
    border: 1px solid var(--border-color);
}


/* --- Lists --- */
ol.styled-list, ul.styled-list {
    list-style: none;
    padding-left: 0;
}

/* --- Placeholder Content --- */
.content-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: var(--light-text-color);
}
.content-placeholder h1 {
    color: #34495e;
    margin-bottom: 15px;
}
.content-placeholder p {
    margin-bottom: 20px;
    font-size: 1.1em;
}
.content-placeholder .go-home-btn {
    background-color: var(--secondary-color);
}
.content-placeholder .go-home-btn:hover {
    background-color: darken(var(--secondary-color), 10%);
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }


/* Album Header (from album_display.php, can be generalized if needed) */
.album-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-medium);
}
.album-cover {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.album-cover-placeholder {
    width: 180px;
    height: 180px;
    background-color: #e9ecef;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    border-radius: var(--border-radius-md);
    margin-bottom: 20px;
    font-size: 0.9em;
}
.album-cover-placeholder svg {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
}
.album-header h1 {
    font-size: 2.2em;
    margin-bottom: 8px;
}
.album-header .meta-info {
    font-size: 0.95em;
    color: var(--light-text-color);
    margin-bottom: 8px;
}
.album-header .meta-info span {
    margin: 0 5px;
}
.album-header .stars-info {
    font-size: 0.9em;
    color: var(--light-text-color);
}

@media (min-width: 768px) {
    .album-header {
        flex-direction: row;
        text-align: left;
        align-items: flex-start; /* Align items to start for multi-line text */
    }
    .album-cover, .album-cover-placeholder {
        margin-right: 25px;
        margin-bottom: 0;
        flex-shrink: 0; /* Prevent image from shrinking */
    }
    .album-header h1 {
        font-size: 2.5em;
    }
}