/* The House of the Potter - Site Styles
   Preserves original design aesthetic with modern CSS layout */

/* === Reset & Base === */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    color: #f6fafa;
    background-color: #9dbcc0;
    background-image: url(9dbcc0.png);
    background-repeat: repeat-x;
    font: normal 1em Verdana, sans-serif;
    padding: 1em;
    min-height: 100vh;
}

hr { color: #405F5F; border-color: #405F5F; }

a, a:visited { color: #f6fafa; text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { text-align: left; }
h1 { font-size: 1.4em; }
h2 { font-size: 1.2em; }
h3 { font-size: 1.1em; }
h4 { font-size: 1.0em; }
h1 a { font-size: 0.7em; }

img { max-width: 100%; height: auto; }

/* === Header === */
#header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    text-align: center;
    flex-wrap: wrap;
}

#header img { border: 3px solid #313b3c; }
.header-logo img { width: 130px; height: 100px; }

.header-text {
    display: flex;
    flex-direction: column;
}

#header_title { font-size: 220%; }
#header_proprietor { font-size: 150%; }
#header_talents { font-style: italic; }

/* === Navigation Menus === */
.horz_menu, .vert_menu {
    padding: 3px 0;
    margin: 1px 0;
    font: bold 12px Verdana, sans-serif;
    list-style-type: none;
    text-align: center;
}

.horz_menu ul, .vert_menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.horz_menu li { display: inline; margin: 0; }
.vert_menu li { margin-bottom: 1em; }

.horz_menu li a,
.vert_menu li a {
    text-decoration: none;
    padding: 3px 7px;
    margin-right: 3px;
    border: 1px solid #add0d4;
    color: #2d2b2b;
    background-color: #5b6e72;
    background-image: url(9dbcc0-sm.png);
    background-repeat: repeat-x;
}

.horz_menu li a:visited,
.vert_menu li a:visited { color: #2d2b2b; }

.horz_menu li a:hover,
.vert_menu li a:hover {
    text-decoration: underline;
    color: #313b3c;
}

/* === Page Layout === */
.page-layout {
    display: flex;
    gap: 1em;
    margin-top: 0.5em;
}

.sidebar {
    width: 150px;
    flex-shrink: 0;
}

.contentstyle {
    flex: 1;
    margin: 0 1em;
    min-width: 0;
}

.contentstyle img {
    border: 4px solid #313b3c;
}

.contentstyle p {
    padding: 0.5em 0;
}

/* === Store Hours === */
#store_hours table {
    margin-top: 1em;
    border: 2px solid #add0d4;
    color: #2d2b2b;
    background-color: #9dbcc0;
    background-image: url(9dbcc0-th.png);
    background-repeat: repeat-x;
    width: 100%;
}

#store_hours th { border-bottom: 1px solid #778; padding: 0.25em; }
#store_hours td { font-size: 80%; text-align: center; padding: 0.1em; white-space: nowrap; }

/* === Footer === */
#footer { font-size: 80%; text-align: center; padding: 1em 0; }

/* === Category Grid === */
.cats {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.cat-entry {
    display: flex;
    gap: 1em;
    align-items: center;
    padding: 0.5em;
}

.cat-entry img {
    width: 120px;
    height: auto;
    flex-shrink: 0;
}

.cat-info h3 { margin-bottom: 0.25em; }
.cat-info p { font-size: 0.9em; }

/* === Item Grid === */
.item-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

.item-entry {
    text-align: center;
    width: 140px;
}

.item-entry img {
    width: 120px;
    height: auto;
}

.item-entry-info {
    font-size: 0.85em;
    margin-top: 0.25em;
}

/* === Item Detail === */
.item-detail {
    display: flex;
    gap: 1.5em;
    margin: 1em 0;
    flex-wrap: wrap;
}

.item-image {
    flex-shrink: 0;
}

.item-image img {
    max-width: 500px;
}

.item-description {
    flex: 1;
    min-width: 200px;
}

.item-description h2 { margin-bottom: 0.5em; }

/* === Item Navigation === */
.item-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5em 0;
    font-size: 0.9em;
}

.item-position {
    color: #add0d4;
    font-size: 0.85em;
}

/* === Item Options Table === */
.itemoptionlist { margin-top: 1em; }

.itemoptionlist table {
    border: 2px solid #add0d4;
    color: #2d2b2b;
    background-color: #9dbcc0;
    background-image: url(9dbcc0-th.png);
    background-repeat: repeat-x;
    border-collapse: collapse;
    width: 100%;
}

.itemoptionlist th {
    border-bottom: 1px solid #778;
    padding: 0.25em 0.5em;
    text-align: left;
    font-size: 0.8em;
}

.itemoptionlist td {
    padding: 0.2em 0.5em;
    line-height: 0.9em;
    font-size: 80%;
}

.sold { text-decoration: line-through; }
.catno { text-transform: uppercase; }
.desc { padding-left: 1em; padding-right: 1em; font-size: 80%; }
.price { text-align: right; }
.small { font-size: 70%; }
.item_page_message { font-size: 70%; max-width: 360px; }

/* === Album Detail === */
.album-detail {
    display: flex;
    gap: 1.5em;
    margin: 1em 0;
    flex-wrap: wrap;
}

.album-art {
    flex-shrink: 0;
}

.album-art img {
    max-width: 300px;
}

.album-info {
    flex: 1;
    min-width: 200px;
}

.album-meta {
    margin: 0.5em 0;
}

.album-meta td {
    padding: 0.1em 0.5em 0.1em 0;
}

/* === Music Player === */
.music-player {
    margin: 1.5em 0;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 1em;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-bottom: 1em;
}

.player-btn {
    background: #5b6e72;
    border: 1px solid #add0d4;
    color: #f6fafa;
    padding: 0.3em 0.6em;
    cursor: pointer;
    font-size: 1em;
    border-radius: 3px;
}

.player-btn:hover { background: #6d8387; }

.player-btn-main {
    font-size: 1.2em;
    padding: 0.3em 0.8em;
}

.player-progress {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
}

#player-progress-bar {
    height: 100%;
    width: 0;
    background: #add0d4;
    border-radius: 4px;
    transition: width 0.1s linear;
}

.player-time {
    font-size: 0.75em;
    white-space: nowrap;
    min-width: 80px;
    text-align: right;
}

/* === Track List === */
.track-list h3 {
    margin-bottom: 0.5em;
    font-size: 0.9em;
}

.track-list ol {
    list-style: none;
    padding: 0;
}

.track-item {
    padding: 0.4em 0.5em;
    cursor: pointer;
    border-radius: 3px;
    font-size: 0.85em;
}

.track-item:hover {
    background: rgba(255,255,255,0.1);
}

.track-item.active {
    background: rgba(255,255,255,0.15);
    font-weight: bold;
}

.track-name {
    display: inline;
}

/* === Contact === */
#contact { text-align: center; }

/* === Responsive === */
@media (max-width: 768px) {
    .page-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .vert_menu ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5em;
    }

    .vert_menu li { margin-bottom: 0; }

    #header {
        flex-direction: column;
    }

    #header_title { font-size: 160%; }

    .item-detail,
    .album-detail {
        flex-direction: column;
    }

    .item-image img,
    .album-art img {
        max-width: 100%;
    }

    .item-grid {
        justify-content: center;
    }

    .horz_menu li a {
        font-size: 11px;
        padding: 2px 4px;
        margin-right: 1px;
    }
}

@media (max-width: 480px) {
    body { padding: 0.5em; }
    #header_title { font-size: 130%; }
    #header_proprietor { font-size: 110%; }
}
