/* --- Global Button Overrides (Always Black) --- */

/* Navigation Links (Home, About, etc.) */
nav a {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #334155 !important;
    opacity: 1 !important;
    backdrop-filter: none !important;
    transition: all 0.2s ease;
}

/* Control Buttons (Refresh & Theme Toggle) */
#refresh-btn, 
#theme-toggle {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #334155 !important;
    backdrop-filter: none !important;
}

/* Primary "Share Post" Button */
#open-share-btn {
    background-color: #000000 !important;
    color: #38bdf8 !important; /* Brand Blue text */
    border: 2px solid #38bdf8 !important; /* Brand Blue border */
    backdrop-filter: none !important;
}

/* Hover States */
nav a:hover, 
#refresh-btn:hover, 
#theme-toggle:hover {
    background-color: #1e293b !important;
    border-color: #38bdf8 !important;
}

#open-share-btn:hover {
    background-color: #38bdf8 !important;
    color: #ffffff !important;
}

/* --- Background Pattern --- */
.bg-pattern-dark {
    background-color: #0f172a;
    background-image:
        radial-gradient(at 40% 20%, hsla(210, 98%, 60%, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 0%, hsla(180, 100%, 56%, 0.15) 0px, transparent 50%);
}

/* --- Glassmorphism (For Post Cards) --- */
.glass-panel {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(15, 23, 42, 0.6);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* --- Animations --- */
@keyframes spin { to { transform: rotate(360deg); } }
.animate-spin { animation: spin 1s linear infinite; }

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

.animate-fade-in-up {
    animation: fadeInUp 0.3s ease-out forwards;
}

.animate-fade-in {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a; 
}
::-webkit-scrollbar-thumb {
    background: #334155; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #475569; 
}

/* --- Embed Specifics --- */
.twitter-tweet {
    margin: 0 auto !important;
}

.embed-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 1rem;
    overflow: hidden;
    min-height: 320px;
    padding: 1rem;
}