/* SBK.LOL Modern Transparent Theme */

:root {
    --sbk-primary: rgba(147, 51, 234, 0.9);
    --sbk-primary-light: rgba(147, 51, 234, 0.1);
    --sbk-secondary: rgba(108, 117, 125, 0.8);
    --sbk-success: rgba(34, 197, 94, 0.9);
    --sbk-danger: rgba(239, 68, 68, 0.9);
    --sbk-warning: rgba(245, 158, 11, 0.9);
    --sbk-info: rgba(59, 130, 246, 0.9);
    --sbk-light: rgba(248, 249, 250, 0.95);
    --sbk-dark: rgba(17, 24, 39, 0.95);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --backdrop-blur: blur(10px);
}

body {
    background: linear-gradient(135deg, 
        rgba(147, 51, 234, 0.1) 0%, 
        rgba(59, 130, 246, 0.1) 25%,
        rgba(34, 197, 94, 0.1) 50%,
        rgba(245, 158, 11, 0.1) 75%,
        rgba(239, 68, 68, 0.1) 100%);
    background-attachment: fixed;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
}

/* Crown emoji styling */
.crown-emoji {
    font-size: 1.2em;
    margin-right: 0.25rem;
}

/* Navbar customization */
.navbar {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--backdrop-blur);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem !important;
    text-shadow: 0 0 10px rgba(147, 51, 234, 0.3);
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--sbk-primary) !important;
    text-shadow: 0 0 8px rgba(147, 51, 234, 0.5);
}

/* Post card styling */
.post-card {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
    border-color: rgba(147, 51, 234, 0.3);
}

.post-image {
    max-height: 500px;
    object-fit: cover;
    width: 100%;
}

/* Message bubbles */
.message-bubble {
    max-width: 80%;
    word-wrap: break-word;
    border-radius: 25px;
    backdrop-filter: var(--backdrop-blur);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.message-bubble.bg-primary {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.8), rgba(59, 130, 246, 0.8)) !important;
    border-bottom-right-radius: 8px;
    border: 1px solid rgba(147, 51, 234, 0.3);
}

.message-bubble.bg-light {
    background: rgba(255, 255, 255, 0.15) !important;
    border-bottom-left-radius: 8px;
    border: 1px solid var(--glass-border);
    color: var(--sbk-dark);
}

/* Button customizations */
.btn {
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
}

.btn-primary {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.8), rgba(59, 130, 246, 0.8));
    border: 1px solid rgba(147, 51, 234, 0.3);
    color: white;
    box-shadow: 0 4px 20px rgba(147, 51, 234, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(147, 51, 234, 1), rgba(59, 130, 246, 1));
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(147, 51, 234, 0.4);
}

.btn-outline-primary {
    background: rgba(147, 51, 234, 0.1);
    border-color: rgba(147, 51, 234, 0.3);
    color: rgba(147, 51, 234, 1);
}

.btn-outline-primary:hover {
    background: rgba(147, 51, 234, 0.2);
    border-color: rgba(147, 51, 234, 0.5);
    transform: translateY(-2px);
}

.btn:hover {
    transform: translateY(-2px);
}

/* Card customizations */
.card {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: rgba(147, 51, 234, 0.1);
    backdrop-filter: var(--backdrop-blur);
    border-bottom: 1px solid var(--glass-border);
    border-radius: 20px 20px 0 0 !important;
}

.card-footer {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: var(--backdrop-blur);
    border-top: 1px solid var(--glass-border);
    border-radius: 0 0 20px 20px;
}

/* Form styling */
.form-control {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    color: var(--sbk-dark);
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(147, 51, 234, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(147, 51, 234, 0.2);
}

.form-control::placeholder {
    color: rgba(108, 117, 125, 0.7);
}

/* User avatar placeholder */
.fa-user-circle {
    opacity: 0.7;
}

/* Notification styling */
.alert {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: rgba(34, 197, 94, 0.1) !important;
    border-color: rgba(34, 197, 94, 0.3) !important;
    color: rgba(34, 197, 94, 1) !important;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: rgba(239, 68, 68, 1) !important;
}

.alert-primary {
    background: rgba(59, 130, 246, 0.1) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    color: rgba(59, 130, 246, 1) !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .post-card {
        margin-bottom: 1rem;
    }
    
    .message-bubble {
        max-width: 85%;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* Loading states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Custom scrollbar for messages */
#messages-container::-webkit-scrollbar {
    width: 6px;
}

#messages-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#messages-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

#messages-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Animation for new posts */
.post-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Glass morphism effects */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Gradient text effect for brand */
.gradient-text {
    background: linear-gradient(135deg, #9333ea, #3b82f6, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Interactive hover effects */
.interactive-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive-hover:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 16px 48px rgba(147, 51, 234, 0.2);
}

/* Share button special styling */
.share-btn {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: rgba(34, 197, 94, 1);
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(59, 130, 246, 0.2));
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

/* Copy success animation */
@keyframes copySuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.copy-success {
    animation: copySuccess 0.3s ease;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(59, 130, 246, 0.3)) !important;
}

/* Hover effects for interactive elements */
.card-body a:hover,
.dropdown-item:hover {
    text-decoration: none;
}

/* Badge styling */
.badge {
    font-size: 0.75em;
    padding: 0.35em 0.65em;
}

/* Text truncation for long content */
.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Social media like interaction buttons */
.btn-link {
    transition: color 0.3s ease;
}

.btn-link:hover {
    text-decoration: none;
}

/* Profile stats styling */
.text-center .col strong {
    font-size: 1.2rem;
    color: var(--sbk-dark);
}

/* Footer spacing */
.card-footer {
    border-radius: 0 0 12px 12px;
}

/* Search results styling */
.card-body .d-flex .flex-grow-1 h5 {
    margin-bottom: 0.5rem;
}

/* Notification icons */
.fa-heart.text-danger,
.fa-comment.text-primary,
.fa-user-plus.text-success,
.fa-envelope.text-info {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

p {
    color: white;
}

small {
    color: white;
}

strong {
    color: white;
}
