/*
 * DarkBay Underground - Custom styles
 * A simulated underground forum for educational purposes
 */

/* Global styles and dark theme */
body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

/* Custom text colors */
.text-cyan {
    color: #0dcaf0 !important;
}

a.text-cyan:hover {
    color: #0bacda !important;
    text-decoration: none;
}

/* Navbar customization */
.navbar-dark {
    border-bottom: 1px solid #333;
}

.navbar-brand {
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Card customization */
.card {
    margin-bottom: 1.5rem;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
}

.card-header {
    border-bottom: 1px solid #333;
    padding: 0.75rem 1.25rem;
}

/* List group customization */
.list-group-item {
    transition: all 0.2s ease;
}

.list-group-item-action:hover {
    background-color: #1a1a1a;
    border-color: #dc3545;
}

/* Form controls */
.form-control {
    border-radius: 0.25rem;
}

.form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

/* Breadcrumb customization */
.breadcrumb {
    background-color: transparent;
    padding: 0.75rem 0;
    margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #6c757d;
}

.breadcrumb-item.active {
    color: #adb5bd;
}

/* Custom badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 0.25rem;
}

/* Progress bar customization */
.progress {
    height: 0.5rem;
    border-radius: 0.25rem;
}

/* Profile page customizations */
.profile-header {
    background-color: #1a1a1a;
    border-radius: 0.375rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Footer customization */
footer {
    margin-top: 2rem;
    border-top: 1px solid #333;
}

/* Alert customization */
.alert-dismissible .close {
    color: inherit;
}

/* Code blocks */
pre {
    background-color: #1a1a1a;
    color: #e0e0e0;
    padding: 1rem;
    border-radius: 0.25rem;
    border: 1px solid #333;
    overflow-x: auto;
}

code {
    color: #0dcaf0;
    background-color: rgba(13, 202, 240, 0.1);
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
}

pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

/* Thread content customization */
.thread-content {
    line-height: 1.8;
    font-size: 1.05rem;
}

.post-content strong {
    color: #ff5555;
    font-weight: 600;
}

/* Custom hover effects */
.hover-danger:hover {
    color: #dc3545 !important;
}

/* Blink animation for hot posts */
.blink {
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.2; }
    100% { opacity: 1; }
}

/* Data table styling */
.data-preview {
    background-color: #0f0f0f;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
}

.data-preview table {
    width: 100%;
    border-collapse: collapse;
}

.data-preview th {
    background-color: #1c1c1c;
    color: #ff5555;
    text-align: left;
    padding: 8px;
    border-bottom: 1px solid #444;
}

.data-preview td {
    padding: 8px;
    border-bottom: 1px solid #333;
    color: #b5b5b5;
}

.data-preview tr:hover td {
    background-color: #1a1a1a;
}

/* Security badge for verified content */
.verified-badge {
    background: linear-gradient(45deg, #dc3545, #b02a37);
    color: white;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Premium content styling */
.premium-content {
    border: 1px dashed #ff5555;
    background-color: rgba(255, 85, 85, 0.05);
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    position: relative;
}

.premium-content::before {
    content: "PREMIUM";
    position: absolute;
    top: -10px;
    right: 10px;
    background-color: #ff5555;
    color: #000;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 3px;
}

/* Thread highlight effect on hover */
.thread-list-item:hover {
    border-left: 3px solid #dc3545;
    padding-left: calc(1.25rem - 3px);
    transition: all 0.2s ease;
}

/* User avatar placeholder */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #333;
    color: #fff;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .card-title {
        font-size: 1.25rem;
    }
    
    .h4, h4 {
        font-size: 1.25rem;
    }
}

/* Special styling for the admin page */
.admin-panel {
    border: 2px solid #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

/* Animation for alerts */
.alert {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
