/* MP3Kingz Scene Releases PreDB - Main Stylesheet */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
}

body,
#welcome, .releases, .releases th, .releases td, .block-link a, .sidebox-content, .sidebox strong, .sidebox li, .sidebox a, #paging a, #paging .current, .detail-mainbox, .detail-section, .detail-section-head, .detail-section-content, .detail-info-table, .detail-info-table th, .detail-info-table td, .similar-list, .similar-list li, .similar-list a, .detail-tracklist-table, .detail-tracklist-table th, .detail-tracklist-table td, .detail-nfo-controls select, .detail-nfo-controls button, #header .header-text, #navigation a, .sidebox strong {
    font-family: 'Tahoma', Arial, sans-serif !important;
    font-size: 11px !important;
}

body {
    background: #e5e9ef;
    color: #222;
}

/* Layout */
#wrapper {
    width: 1200px;
    margin: 0 auto;
    background: #f7f7f7;
    border-radius: 4px 4px 0 0;
    border: 1px solid #bfc7d1;
    box-shadow: none;
    overflow: hidden;
}

#header {
    background: #3a5a8c;
    padding: 18px 0 6px 0;
    text-align: center;
    border-radius: 4px 4px 0 0;
    border-bottom: 2px solid #1a2330;
    box-shadow: none;
}

#header .crown-logo {
    vertical-align: middle;
    width: 80px;
    height: 80px;
    margin: 0 20px 0 20px;
}

#header .header-text {
    display: inline-block;
    font-size: 15px !important;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 0 #1a2a44;
    letter-spacing: 1px;
    vertical-align: middle;
    font-family: 'Tahoma', 'Consolas', 'Menlo', 'monospace', Arial, sans-serif;
}

/* Navigation */
#navigation {
    display: flex;
    align-items: center;
    padding: 0;
    background: #232c36;
    border-bottom: 1px solid #bfc7d1;
    box-shadow: none;
}

#navigation ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0 0 0 6px;
    flex: 1 1 auto;
}

#navigation li {
    margin: 0 1px;
}

#navigation a {
    display: block;
    padding: 7px 14px 7px 14px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 2px 2px 0 0;
    transition: background 0.2s;
    font-family: 'Tahoma', 'Consolas', 'Menlo', 'monospace', Arial, sans-serif;
}

#navigation a:hover {
    background: #3a5a8c;
}

#nav-search {
    margin-left: auto;
    margin-right: 18px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

#nav-search form {
    display: flex;
    align-items: center;
    background: #e5e9ef;
    border-radius: 2px;
    padding: 1px 4px;
    box-shadow: none;
    border: 1px solid #bfc7d1;
    margin: 0;
}

#nav-search input[type="text"] {
    border: none;
    padding: 3px 6px;
    font-size: 12px;
    border-radius: 2px;
    outline: none;
    width: 200px;
    color: #222;
    font-family: 'IBM Plex Mono', 'Consolas', 'Menlo', 'monospace', Arial, sans-serif;
    margin-right: 2px;
}

#nav-search input[type="image"] {
    margin-left: 4px;
    width: 16px;
    height: 16px;
}

#nav-search input[type="text"]:focus {
    color: #222;
}

@media (max-width: 700px) {
    #nav-search {
        margin-right: 4px;
    }
    #nav-search input[type="text"] {
        width: 80px;
    }
}

/* Content wrapper */
#content_wrapper {
    display: flex;
    min-height: 600px;
    background: #f7f7f7;
}

#content {
    flex: 1;
    padding: 18px 18px 18px 18px;
    background: #f7f7f7;
}

#welcome {
    font-size: 13px;
    font-weight: bold;
    color: #3a5a8c;
    margin-bottom: 10px;
    background: #e5e9ef;
    border-radius: 3px;
    padding: 8px 12px;
    border: 1px solid #bfc7d1;
    box-shadow: none;
    font-family: 'IBM Plex Mono', 'Consolas', 'Menlo', 'monospace', Arial, sans-serif;
}

#sidebar {
    width: 200px;
    background: #f7f7f7;
    padding: 18px 8px 18px 0;
}

/* Headings */
h2 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #666;
    padding-bottom: 5px;
}

h3 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #333;
}

/* Releases table */
.releases, .releases th, .releases td {
    border: none !important;
    box-shadow: none !important;
}

.releases {
    width: 100%;
    background: #fff;
    border-radius: 3px;
    font-size: 12px;
    font-family: 'IBM Plex Mono', 'Consolas', 'Menlo', 'monospace', Arial, sans-serif;
}

.releases th, .releases td, .releases td a {
    padding: 2px 5px !important;
    font-size: 11px !important;
}

.releases th {
    background: #3a5a8c;
    color: #fff;
    padding: 6px 6px;
    text-align: left;
    font-weight: bold;
    font-size: 12px;
}

.releases th:last-child {
    border-right: none;
}

.releases td {
    padding: 5px 6px;
    font-size: 12px;
}

.releases tr.altrow {
    background: #f0f2f5;
}

.releases tr {
    background: #fff;
}

.releases tr:last-child td {
    border-bottom: none;
}

.releases a {
    color: inherit;
    text-decoration: none;
    font-weight: normal;
    font-size: 12px;
    transition: background 0.15s, color 0.15s;
}

.releases a:hover {
    background: #e5e9ef;
    color: #222;
    text-decoration: none;
    border-radius: 2px;
}

/* Sidebar boxes */
.sidebox {
    margin-bottom: 12px;
    background: #fff;
    border-radius: 3px;
    box-shadow: none;
    border: 1px solid #bfc7d1;
}

.sidebox strong {
    display: block;
    background: #3a5a8c;
    color: #fff;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 3px 3px 0 0;
    font-weight: bold;
    letter-spacing: 0.5px;
    font-family: 'IBM Plex Mono', 'Consolas', 'Menlo', 'monospace', Arial, sans-serif;
}

.sidebox-content {
    padding: 6px 10px 6px 10px;
    background: #f7f7f7;
    border-radius: 0 0 3px 3px;
    font-size: 11px;
    font-family: 'IBM Plex Mono', 'Consolas', 'Menlo', 'monospace', Arial, sans-serif;
}

.sidebox ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebox li {
    padding: 2px 0;
    border-bottom: 1px solid #e5e9ef;
    font-size: 11px;
}

.sidebox li:last-child {
    border-bottom: none;
}

.sidebox a {
    color: #2b4d77;
    text-decoration: underline;
    font-size: 11px;
}

.sidebox a:hover {
    color: #3a5a8c;
    text-decoration: underline;
}

/* Pagination */
#paging {
    list-style: none;
    margin: 12px 0 0 0;
    text-align: center;
    padding: 0;
}

#paging li {
    display: inline-block;
    margin: 0 1px;
}

#paging a, #paging .current {
    display: inline-block;
    padding: 3px 8px;
    background: #e5e9ef;
    color: #2b4d77;
    text-decoration: none;
    border-radius: 2px;
    font-weight: bold;
    font-size: 11px;
    border: 1px solid #bfc7d1;
    margin: 0 1px;
}

#paging .current {
    background: #3a5a8c;
    color: #fff;
    border: 1px solid #2b4d77;
}

#paging .previous-off,
#paging .next-off {
    color: #aaa;
    padding: 3px 8px;
}

#paging .ellipsis {
    color: #666;
    padding: 3px 8px;
    font-weight: bold;
}

/* Release detail page */
.release-box {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    background: #fff;
}

.release-box-head {
    background: #333;
    color: #fff;
    padding: 10px;
    position: relative;
}

.release-box-head h3 {
    margin: 0;
    color: #fff;
}

.release-box-head-side {
    position: absolute;
    right: 10px;
    top: 10px;
}

.release-box-head-side a {
    color: #fff;
    text-decoration: none;
    font-size: 11px;
}

.release-box .content {
    padding: 15px;
}

/* Info table */
dl {
    margin: 0;
}

dt, dd {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

dt {
    font-weight: bold;
    width: 30%;
    float: left;
}

dd {
    margin-left: 30%;
}

dt.altrow, dd.altrow {
    background: #f9f9f9;
}

/* Tracklist */
#tracklist-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#tracklist-content li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
    display: flex;
}

#tracklist-content li:last-child {
    border-bottom: none;
}

.tracknumber {
    width: 30px;
    font-weight: bold;
}

.trackname {
    flex: 1;
}

#tracklist-content li.altrow {
    background: #f9f9f9;
}

/* NFO section */
#nfoimg img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
}

/* Similar releases */
#similar-releases ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#similar-releases li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

#similar-releases li:last-child {
    border-bottom: none;
}

#similar-releases a {
    color: inherit;
    text-decoration: none;
    font-weight: normal;
    font-size: 12px;
    transition: background 0.15s, color 0.15s;
}

#similar-releases a:hover {
    background: #e5e9ef;
    color: #222;
    text-decoration: none;
    border-radius: 2px;
}

/* Utility classes */
.no-margin {
    margin: 0;
}

.no-border {
    border: none;
}

.no-padding {
    padding: 0;
}

.clear {
    clear: both;
}

.right {
    float: right;
}

.left {
    float: left;
}

.altrow {
    background: #f9f9f9;
}

/* Footer */
#footer_wrapper {
    background: #3a5a8c;
    color: #fff;
    padding: 7px 0;
    text-align: center;
    font-size: 11px;
    border-radius: 0 0 4px 4px;
    box-shadow: none;
    border-top: 1px solid #bfc7d1;
}

#footer {
    width: 1200px;
    margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 1300px) {
    #wrapper, #footer {
        width: 98%;
    }
}

/* Login dialog */
#dialog {
    display: none;
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    margin: 20px 0;
}

/* Search form */
.input {
    margin-bottom: 10px;
}

.input label {
    display: block;
    margin-bottom: 3px;
    font-weight: bold;
}

.input input[type="text"] {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
}

.input select {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
}

.submit input {
    background: #333;
    color: #fff;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
}

.submit input:hover {
    background: #555;
}

/* --- Detail Page Refinements --- */
.detail-mainbox {
    background: #fff;
    border-radius: 4px;
    box-shadow: none;
    border: 1px solid #bfc7d1;
    padding: 14px 16px 16px 16px;
    margin-bottom: 18px;
    display: flex;
    gap: 18px;
    font-size: 12px;
    font-family: 'IBM Plex Mono', 'Consolas', 'Menlo', 'monospace', Arial, sans-serif;
}

.detail-col {
    flex: 1;
}

.detail-section {
    margin-bottom: 14px;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: none;
    background: #fff;
    border: 1px solid #bfc7d1;
}

.detail-section-head {
    background: #3a5a8c;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 3px 3px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'IBM Plex Mono', 'Consolas', 'Menlo', 'monospace', Arial, sans-serif;
}

.detail-section-head .download-link {
    color: #fff;
    font-size: 11px;
    text-decoration: underline;
    font-weight: normal;
}

.detail-section-content {
    padding: 0 10px 6px 10px;
    background: #fff;
    font-size: 12px;
}

.detail-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    font-size: 12px;
}

.detail-info-table th, .detail-info-table td {
    padding: 4px 6px;
    font-size: 12px;
    border-bottom: 1px solid #bfc7d1;
}

.detail-info-table th {
    background: #f0f2f5;
    color: #2b4d77;
    font-weight: bold;
    width: 90px;
    text-align: left;
}

.detail-info-table td {
    background: #fff !important;
    color: #222;
}

.detail-info-table tr.altrow td, .detail-info-table tr.altrow th {
    background: #f0f2f5;
}

.similar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 12px;
}

.similar-list li {
    padding: 3px 0 3px 0;
    border-bottom: 1px solid #e5e9ef;
    font-size: 12px;
}

.similar-list li:last-child {
    border-bottom: none;
}

.similar-list a {
    color: inherit;
    text-decoration: none;
    font-weight: normal;
    font-size: 12px;
    transition: background 0.15s, color 0.15s;
}

.similar-list a:hover {
    background: #e5e9ef;
    color: #222;
    text-decoration: none;
    border-radius: 2px;
}

.detail-tracklist-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.detail-tracklist-table th, .detail-tracklist-table td {
    padding: 4px 6px;
    border-bottom: 1px solid #bfc7d1;
}

.detail-tracklist-table tr.altrow td {
    background: #f0f2f5;
}

.detail-tracklist-table a {
    color: inherit;
    text-decoration: none;
    font-weight: normal;
    font-size: 12px;
    transition: background 0.15s, color 0.15s;
}

.detail-tracklist-table a:hover {
    background: #e5e9ef;
    color: #222;
    text-decoration: none;
    border-radius: 2px;
}

.detail-nfo-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    margin-bottom: 4px;
}

.detail-nfo-controls select, .detail-nfo-controls button {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 2px;
    border: 1px solid #bfc7d1;
    background: #f7f7f7;
}

.detail-nfo-controls button {
    background: #3a5a8c;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.detail-nfo-controls button:hover {
    background: #232c36;
}

.detail-mainbox .detail-col:first-child {
    flex: 0.5;
}

.detail-mainbox .detail-col:last-child {
    flex: 1.5;
}

/* --- End Detail Page Refinements --- */ 

.detail-mainbox .detail-col:first-child {
    margin-right: 20px;
}

.detail-mainbox .detail-col:last-child {
    margin-left: 20px;
}

/* Archive Page Styles */
.archive-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.archive-section {
    flex: 1;
    background: #fff;
    border: 1px solid #bfc7d1;
    border-radius: 4px;
    padding: 15px;
}

.archive-section h3 {
    margin-bottom: 15px;
    color: #3a5a8c;
    border-bottom: 2px solid #3a5a8c;
    padding-bottom: 5px;
}

.top-groups-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.top-groups-table th,
.top-groups-table td {
    padding: 6px 8px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.top-groups-table th {
    background: #f5f5f5;
    font-weight: bold;
    color: #3a5a8c;
}

.top-groups-table tr:hover {
    background: #f9f9f9;
}

.calendar-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.year-calendar {
    flex: 1;
    min-width: 300px;
    background: #fff;
    border: 1px solid #bfc7d1;
    border-radius: 4px;
    padding: 10px;
}

.year-title {
    text-align: center;
    font-weight: bold;
    color: #3a5a8c;
    margin-bottom: 10px;
    font-size: 14px;
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2px;
    margin-bottom: 10px;
}

.month-cell {
    text-align: center;
    padding: 2px;
    font-size: 10px;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.month-cell:hover {
    background: #e8f4e8;
}

.month-name {
    font-weight: bold;
    color: #3a5a8c;
    margin-bottom: 2px;
}

.month-total {
    font-size: 9px;
    color: #666;
}

/* Daily Calendar Styles */
.month-section {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.month-header {
    background: #3a5a8c;
    color: white;
    padding: 8px 12px;
    font-weight: bold;
    font-size: 12px;
    text-align: center;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e0e0e0;
}

.day-header {
    background: #f5f5f5;
    padding: 6px 4px;
    text-align: center;
    font-weight: bold;
    font-size: 10px;
    color: #3a5a8c;
    border-bottom: 1px solid #e0e0e0;
}

.day-cell {
    background: white;
    padding: 4px 2px;
    text-align: center;
    min-height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
    border: 1px solid #f0f0f0;
}

.day-cell:hover {
    background: #f8f9fa;
    border-color: #3a5a8c;
}

.day-empty {
    background: #f8f9fa;
    min-height: 40px;
}

.day-number {
    font-weight: bold;
    font-size: 11px;
    margin-bottom: 2px;
}

.day-count {
    font-size: 9px;
    font-weight: bold;
}

/* Color coding for release counts - improved contrast */
.count-0 { background: #f8f9fa; color: #666; }
.count-1-50 { background: #e8f5e8; color: #2d5016; }
.count-51-150 { background: #d4edda; color: #155724; }
.count-151-300 { background: #c3e6cb; color: #155724; }
.count-301-500 { background: #8bc34a; color: #ffffff; }
.count-501-849 { background: #2e7d32; color: #ffffff; }
.count-850-plus { 
    background: #2e7d32; 
    color: #ffffff; 
    border: 2px solid #ffd700;
    box-shadow: 0 0 4px rgba(255, 215, 0, 0.6);
}

.legend {
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 10px;
}

.legend h4 {
    margin-bottom: 8px;
    color: #3a5a8c;
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 5px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

/* Responsive design for archive page */
@media (max-width: 1200px) {
    .archive-container {
        flex-direction: column;
    }
    
    .calendar-container {
        justify-content: center;
    }
    
    .year-calendar {
        min-width: 250px;
    }
} 