/* Music Hub - Hacker News Style CSS */

.music-hub-container {
    background-color: #f6f6ef;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 10pt;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Header */
.music-hub-header {
    background-color: #ff6600;
    padding: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.music-hub-logo {
    font-weight: bold;
    font-size: 11pt;
    color: #000;
    margin: 0;
    padding: 4px 8px;
}

.music-hub-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.music-hub-nav a {
    color: #000;
    text-decoration: none;
    font-size: 10pt;
}

.music-hub-nav a:hover {
    text-decoration: underline;
}

.music-hub-nav a.active {
    font-weight: bold;
}

.music-hub-nav .separator {
    color: #000;
}

/* Submission Form */
#submission-form {
    background-color: #f6f6ef;
    padding: 10px;
    margin: 10px 0;
}

.submit-form {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 15px;
    max-width: 600px;
}

.submit-form h3 {
    margin-top: 0;
    font-size: 11pt;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 6px;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 10pt;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 9pt;
}

.form-actions {
    display: flex;
    gap: 10px;
}

.submit-btn,
.cancel-btn {
    padding: 6px 12px;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 10pt;
    cursor: pointer;
    border: 1px solid #ccc;
    background-color: #f0f0f0;
}

.submit-btn:hover,
.cancel-btn:hover {
    background-color: #e0e0e0;
}

#form-message {
    margin-top: 10px;
    padding: 10px;
    display: none;
}

#form-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    display: block;
}

#form-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    display: block;
}

/* Music List */
.music-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #f6f6ef;
}

.music-item {
    display: flex;
    gap: 5px;
    padding: 4px 8px;
    background-color: #f6f6ef;
    border-bottom: 1px solid #e6e6df;
}

.music-item:hover {
    background-color: #efefef;
}

.rank {
    color: #828282;
    text-align: right;
    min-width: 25px;
    padding-top: 2px;
}

.vote-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vote-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12pt;
    color: #828282;
    padding: 0;
    line-height: 1;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vote-btn:hover:not(:disabled) {
    color: #ff6600;
}

.vote-btn.voted {
    color: #ff6600;
}

.vote-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.content {
    flex: 1;
}

.title-line {
    line-height: 1.4;
}

.title {
    color: #000;
    text-decoration: none;
    font-size: 10pt;
}

.title:visited {
    color: #828282;
}

.title:hover {
    text-decoration: underline;
}

.artist-name {
    color: #828282;
    font-size: 9pt;
    margin-left: 5px;
    font-style: italic;
}

.domain {
    color: #828282;
    font-size: 8pt;
    margin-left: 5px;
}

.meta {
    color: #828282;
    font-size: 8pt;
    margin-top: 2px;
    line-height: 1.4;
}

.meta .separator {
    margin: 0 4px;
}

.meta .points {
    color: #828282;
}

.meta .author,
.meta .time,
.meta .platform {
    color: #828282;
}

.meta .voted-label {
    color: #ff6600;
    font-weight: bold;
}

.no-items {
    padding: 20px;
    text-align: center;
    color: #828282;
    list-style: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .music-hub-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 5px;
    }
    
    .music-hub-logo {
        padding: 5px 8px;
    }
    
    .music-hub-nav {
        padding: 0 8px 5px;
    }
    
    .rank {
        min-width: 20px;
    }
    
    .submit-form {
        max-width: 100%;
    }
}

/* Loading state */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Vote feedback */
@keyframes vote-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.vote-btn.voting {
    animation: vote-pulse 0.3s ease;
}

/* Notification styles */
.music-hub-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 9999;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 10pt;
}

.music-hub-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.music-hub-notification.success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.music-hub-notification.error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Required field indicator */
.required {
    color: #ff0000;
}
