/* Custom CSS for burningboard.net Landing Page */

:root {
    --mastodon-blue: #6364FF;
    --mastodon-purple: #563ACC;
    --mastodon-dark: #191B22;
    --mastodon-light: #F8F9FA;
    --bb-dark: #282c37;
    --bb-darker: #1f232b;
    --bb-accent: #9baec8;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navigation */
.bg-mastodon {
    background: linear-gradient(135deg, var(--mastodon-blue), var(--mastodon-purple));
}

.navbar-brand img {
    filter: brightness(0) invert(1);
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--mastodon-blue);
    border-color: var(--mastodon-blue);
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--mastodon-purple);
    border-color: var(--mastodon-purple);
    transform: translateY(-2px);
}

/* Colors */
.text-mastodon {
    color: var(--mastodon-blue);
}

.btn-mastodon {
    background: linear-gradient(135deg, var(--mastodon-blue), var(--mastodon-purple));
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-mastodon:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 100, 255, 0.3);
    color: white;
}

.btn-outline-mastodon {
    border: 2px solid var(--mastodon-blue);
    color: var(--mastodon-blue);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-mastodon:hover {
    background: var(--mastodon-blue);
    color: white;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(99, 100, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(86, 58, 204, 0.1) 0%, transparent 50%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(99,100,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.hero-illustration {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Cards */
.card {
    transition: all 0.3s ease;
    border-radius: 15px;
    border: 1px solid rgba(99, 100, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--mastodon-blue), var(--mastodon-purple));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(99, 100, 255, 0.15);
    border-color: rgba(99, 100, 255, 0.2);
}

.card:hover::before {
    opacity: 1;
}

/* Feature cards with icons */
.feature-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(99, 100, 255, 0.1);
}

.feature-card .card-body {
    position: relative;
}

.feature-card .card-body::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(99, 100, 255, 0.1), rgba(86, 58, 204, 0.1));
    border-radius: 50%;
    z-index: 0;
}

.card-body {
    padding: 2rem;
}

/* Icons */
.bi {
    line-height: 1;
}

/* Sections */
section {
    padding: 5rem 0;
}

.bg-mastodon {
    background: linear-gradient(135deg, var(--mastodon-blue), var(--mastodon-purple));
}

/* Footer */
footer {
    background: var(--bb-darker) !important;
}

/* Footer text visibility fixes with MAXIMUM specificity */
footer.bg-dark .text-muted,
footer .text-muted,
footer .text-muted.small,
footer p.text-muted,
footer p.text-muted.small,
footer span.text-muted,
footer small.text-muted {
    color: #9baec8 !important;
}

footer.bg-dark h6,
footer h6,
footer h6.fw-bold,
footer .fw-bold {
    color: #ffffff !important;
}

/* All possible footer link combinations */
footer.bg-dark a,
footer a,
footer .social-links a,
footer ul.list-unstyled a,
footer a.text-muted,
footer a.text-decoration-none,
footer a.text-decoration-none.text-muted,
footer .container .row .col-md-6 a,
footer .social-links a.text-decoration-none.text-muted {
    color: #9baec8 !important;
    text-decoration: none !important;
}

/* Hover states for all footer links */
footer.bg-dark a:hover,
footer a:hover,
footer .social-links a:hover,
footer ul.list-unstyled a:hover,
footer a.text-muted:hover,
footer a.text-decoration-none:hover,
footer a.text-decoration-none.text-muted:hover,
footer .container .row .col-md-6 a:hover,
footer .social-links a.text-decoration-none.text-muted:hover {
    color: var(--mastodon-blue) !important;
    text-decoration: none !important;
}

/* Nuclear option - override Bootstrap completely */
footer * {
    color: #9baec8 !important;
}

footer h6 *,
footer .fw-bold,
footer .fw-bold * {
    color: #ffffff !important;
}

footer a *,
footer a {
    color: #9baec8 !important;
}

footer a:hover *,
footer a:hover {
    color: var(--mastodon-blue) !important;
}

/* Simple Fediverse Illustration */
.fediverse-simple {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem 0;
}

.fediverse-row {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1.5rem;
}

.fediverse-row:last-child {
    margin-bottom: 0;
}

.fediverse-center {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.fediverse-service {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.service-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.fediverse-service small {
    font-weight: 600;
    color: #666;
    font-size: 0.8rem;
}

.central-hub {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mastodon-blue), var(--mastodon-purple));
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(99, 100, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.central-hub i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hub-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.1;
}

.central-hub:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(99, 100, 255, 0.4);
}

/* Add subtle connecting lines */
.fediverse-simple::before,
.fediverse-simple::after {
    content: '';
    position: absolute;
    background: linear-gradient(45deg, transparent, rgba(99, 100, 255, 0.2), transparent);
    height: 1px;
    width: 60px;
    top: 50%;
    transform: translateY(-50%);
}

.fediverse-center {
    position: relative;
}

.central-hub::before,
.central-hub::after {
    content: '';
    position: absolute;
    background: rgba(99, 100, 255, 0.3);
    height: 1px;
    width: 50px;
}

.central-hub::before {
    top: 30%;
    left: -70px;
    transform: rotate(-45deg);
    transform-origin: right center;
}

.central-hub::after {
    top: 30%;
    right: -70px;
    transform: rotate(45deg);
    transform-origin: left center;
}

/* Responsive */
@media (max-width: 768px) {
    .fediverse-simple {
        max-width: 300px;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .central-hub {
        width: 100px;
        height: 100px;
    }
    
    .central-hub i {
        font-size: 2rem;
    }
    
    .hub-label {
        font-size: 0.7rem;
    }
    
    .central-hub::before,
    .central-hub::after {
        display: none;
    }
}

/* Mastodon Interface Mockup */
.mastodon-mockup {
    max-width: 600px;
    margin: 0 auto;
}

.mastodon-compose {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
}

.compose-header {
    background: #f7f9fc;
    padding: 12px 16px;
    border-bottom: 1px solid #e1e8ed;
    font-size: 0.9rem;
}

.compose-body {
    display: flex;
    padding: 16px;
    gap: 12px;
}

.user-avatar {
    flex-shrink: 0;
}

.compose-content {
    flex: 1;
    min-width: 0;
}

.compose-text {
    background: #f8f9fa;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    min-height: 120px;
    color: #333;
    font-family: inherit;
}

.hashtag {
    color: var(--mastodon-blue);
    font-weight: 500;
}

.compose-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #e1e8ed;
}

.compose-tools {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tool-icon {
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.tool-icon:hover {
    color: var(--mastodon-blue) !important;
}

.char-counter {
    font-size: 0.8rem;
    color: #666;
    margin-left: auto;
}

.btn-mastodon.btn-sm {
    font-size: 0.8rem;
    padding: 6px 12px;
}

/* Mastodon Interface Preview */
.hero-screenshot {
    max-width: 500px;
    margin: 0 auto;
}

.mastodon-preview {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    overflow: hidden;
    border: 1px solid #e1e8ed;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: all 0.3s ease;
}

.mastodon-preview:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    box-shadow: 0 15px 60px rgba(99, 100, 255, 0.2);
}

.preview-header {
    background: #f5f5f5;
    padding: 8px 16px;
    border-bottom: 1px solid #e1e8ed;
    display: flex;
    align-items: center;
    gap: 12px;
}

.window-controls {
    display: flex;
    gap: 6px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.close { background: #ff5f57; }
.control.minimize { background: #ffbd2e; }
.control.maximize { background: #28ca42; }

.url-bar {
    background: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #e1e8ed;
    font-size: 0.8rem;
    color: #666;
    flex: 1;
    display: flex;
    align-items: center;
}

.preview-content {
    padding: 16px;
}

.mastodon-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 16px;
}

.instance-name {
    font-weight: 600;
    color: var(--mastodon-blue);
    font-size: 0.9rem;
}

.timeline-preview {
    space-y: 16px;
}

.toot-preview {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f8f8f8;
}

.toot-preview:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.toot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--mastodon-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.toot-content {
    flex: 1;
    min-width: 0;
}

.toot-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.toot-header strong {
    font-size: 0.9rem;
    color: #333;
}

.toot-time {
    font-size: 0.8rem;
    color: #666;
}

.toot-content p {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #333;
}

.toot-stats {
    display: flex;
    gap: 16px;
    font-size: 0.75rem;
    color: #666;
}

.toot-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.compose-hint {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
    display: flex;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 16px;
}

/* Team showcase small */
.team-member-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.team-member-small:hover {
    color: var(--mastodon-blue);
    text-decoration: none;
    transform: translateY(-2px);
}

.team-member-small i {
    font-size: 1.5rem;
}

.team-member-small small {
    font-size: 0.7rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .mastodon-preview {
        transform: none;
    }
    
    .mastodon-preview:hover {
        transform: none;
    }
    
    .hero-screenshot {
        max-width: 100%;
    }
}

/* Team member styling */
.team-member {
    margin: 0.5rem;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.team-member:hover {
    background: rgba(99, 100, 255, 0.1);
    transform: translateY(-3px);
}

/* Dark theme adaptations inspired by Mastodon */
.bg-mastodon-dark {
    background: linear-gradient(135deg, var(--bb-dark), var(--bb-darker));
}

/* Status page styling */
.status-link {
    color: var(--bb-accent);
    text-decoration: none;
}

.status-link:hover {
    color: var(--mastodon-blue);
}

footer .social-links a {
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    color: var(--mastodon-blue) !important;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-illustration i {
        font-size: 8rem !important;
    }
    
    section {
        padding: 3rem 0;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Button animations */
.btn {
    transition: all 0.3s ease;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--mastodon-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--mastodon-purple);
}

/* Focus states for accessibility */
.btn:focus,
.nav-link:focus {
    box-shadow: 0 0 0 3px rgba(99, 100, 255, 0.25);
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

img[data-src].loaded {
    opacity: 1;
}

/* Footer Styles - Consolidated */
footer, footer *, footer a, footer p, footer span, footer small { 
    color: #9baec8 !important; 
}

footer h6, footer .fw-bold { 
    color: #ffffff !important; 
}

footer a:hover { 
    color: #6364FF !important; 
}