/* 
 * Main Stylesheet for Hubben.net
 */

/* General Styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

a {
    color: #4a89dc;
    transition: color 0.2s;
}

a:hover {
    color: #2c5aa0;
}

/* Header & Navigation */
.navbar-brand img {
    height: 30px;
}

/* Crypto Ticker */
/* Crypto Ticker Container */
.crypto-ticker {
    overflow: hidden;
    white-space: nowrap;
    padding: 6px 0 8px;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-mode .crypto-ticker {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Ticker Wrapper */
.ticker-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.ticker-label {
    font-weight: bold;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.7;
    display: flex;
    align-items: center;
    margin-bottom: 2px;
}

.ticker-label i {
    margin-right: 5px;
}

/* Ticker Content */
#crypto-ticker-content {
    width: 100%;
    overflow: hidden;
}

.ticker-content {
    white-space: nowrap;
    display: inline-block;
    padding-left: 100%;
    animation: ticker 30s linear infinite;
    will-change: transform;
}

.ticker-content:hover {
    animation-play-state: paused;  /* Pause on hover */
}

.ticker-item {
    display: inline-block;
    margin-right: 30px;
    position: relative;
    padding: 2px 8px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.ticker-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.dark-mode .ticker-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.ticker-item strong {
    margin-right: 5px;
}

/* Animation */
@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Responsive Styles */
@media (max-width: 576px) {
    .ticker-label {
        width: 80px;
        overflow: hidden;
    }
    
    .ticker-item {
        margin-right: 20px;
    }
}

/* Fallback when JavaScript is disabled */
.no-js .ticker-content {
    animation: none;
    padding-left: 0;
}

/* User Avatar */
.avatar {
    border-radius: 50%;
    object-fit: cover;
}

/* Cards */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Comment Styles */
.comment {
    margin-bottom: 1.5rem;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-avatar {
    margin-right: 10px;
}

.comment-username {
    font-weight: 600;
    margin-right: 10px;
}

.comment-time {
    color: #6c757d;
    font-size: 0.8rem;
}

.comment-content {
    margin-left: 50px;
}

.comment-footer {
    margin-left: 50px;
    font-size: 0.9rem;
}

.comment-replies {
    margin-left: 50px;
    margin-top: 1rem;
}

/* Vote Controls */
.vote-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 15px;
}

.vote-count {
    font-weight: bold;
    margin: 5px 0;
}

.upvote, .downvote {
    color: #6c757d;
    cursor: pointer;
}

.upvote.active {
    color: #28a745;
}

.downvote.active {
    color: #dc3545;
}

/* Flash Messages */
.flash-messages {
    margin-bottom: 20px;
}

.flash-message {
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.flash-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.flash-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(33, 37, 41, 0.9);
    color: white;
    padding: 15px 0;
    z-index: 1050;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

/* Status Updates */
.status-update {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dee2e6;
}

.status-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.status-avatar {
    margin-right: 10px;
}

.status-info {
    flex-grow: 1;
}

.status-username {
    font-weight: 600;
    margin-bottom: 0;
}

.status-time {
    font-size: 0.8rem;
    color: #6c757d;
}

.status-content {
    margin-bottom: 10px;
}

.status-footer {
    display: flex;
    gap: 15px;
}

.status-action {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
}

.status-action:hover {
    color: #4a89dc;
}

/* Notifications */
.notification-item {
    padding: 10px 15px;
    border-bottom: 1px solid #dee2e6;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background-color: #f8f9fa;
}

.notification-content {
    margin-bottom: 5px;
}

.notification-time {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Messages */
.message-item {
    padding: 10px 15px;
    border-bottom: 1px solid #dee2e6;
}

.message-item:last-child {
    border-bottom: none;
}

.message-item.unread {
    background-color: #f8f9fa;
}

.message-sender {
    font-weight: 600;
}

.message-subject {
    margin-bottom: 5px;
}

.message-preview {
    color: #6c757d;
    font-size: 0.9rem;
}

.message-time {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.page-link {
    color: #4a89dc;
    text-decoration: none;
    padding: 5px 10px;
    margin: 0 5px;
    border-radius: 4px;
}

.page-link:hover {
    background-color: #e9ecef;
}

.page-link.current {
    background-color: #4a89dc;
    color: white;
}

.page-link.disabled {
    color: #6c757d;
    cursor: not-allowed;
}

/* Footer */
.footer {
    margin-top: auto;
    padding: 20px 0;
    background-color: #f8f9fa;
}

/* Scroll to Top Button */
#scrollToTop {
    display: none;
    z-index: 99;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .comment-content,
    .comment-footer,
    .comment-replies {
        margin-left: 0;
    }
}