/* 
 * SavaState Premium Theme
 * Modern, High-Contrast Dark Mode with Glassmorphism
 */

:root {
    --bg-main: #0a0b10;
    --bg-card: rgba(20, 22, 30, 0.8);
    --bg-nav: rgba(10, 11, 16, 0.95);
    
    --primary: #00d2ff;
    --primary-glow: rgba(0, 210, 255, 0.4);
    --secondary: #ff0055;
    --accent: #7d2ae8;
    
    --text-main: #f0f0f5; /* Increased brightness again for maximum readability */
    --text-muted: #B8C9D9; /* Brighter muted text for processor review clarity */
    --text-bright: #ffffff;
    
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(0, 210, 255, 0.2);
    
    --font-header: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 18px;
    letter-spacing: 0.5px;
    background-image: 
    radial-gradient(circle at 20% 30%, rgba(125, 42, 232, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0, 210, 255, 0.1) 0%, transparent 40%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--font-header);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-bright);
}

/* Glassmorphism Cards */
.card, .post-card, .user-profile-card, .sidebar-card {
    background: var(--bg-card) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    border-color: var(--border-glow) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 48px 0 rgba(0, 210, 255, 0.15);
}

/* Navbar */
.navbar {
    background: var(--bg-nav) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 600;
    color: var(--text-muted) !important;
    transition: color 0.3s ease;
    margin: 0 10px;
}

.nav-link:hover, .nav-item.active .nav-link {
    color: var(--primary) !important;
    text-shadow: 0 0 10px var(--primary-glow);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
    border: none !important;
    font-family: var(--font-header);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-outline-danger {
    border-color: var(--secondary) !important;
    color: var(--secondary) !important;
    font-family: var(--font-header);
}

.btn-outline-danger:hover {
    background: var(--secondary) !important;
    color: white !important;
    box-shadow: 0 0 15px var(--secondary);
}

/* Post Styling */
.post-card {
    margin-bottom: 24px;
}

.post-header img {
    border: 2px solid var(--primary);
    padding: 2px;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 15px 0;
}

.post-footer .btn-link {
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.post-footer .btn-link:hover {
    color: var(--primary);
    text-decoration: none;
}

/* Sidebar Elements */
.sidebar-right .h6.text-danger i {
    color: var(--secondary);
}

.pulse {
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { transform: scale(0.95); opacity: 0.7; }
    70% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

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

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 4px;
    border: 1px solid var(--border-glass);
}

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

/* Aligram Hashtag & Mention Styling */
.post-hashtag, .post-mention {
    transition: all 0.2s ease;
    padding: 1px 4px;
    border-radius: 4px;
}

.post-hashtag:hover {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd !important;
    text-decoration: underline !important;
}

.post-mention:hover {
    background: rgba(13, 202, 240, 0.1);
    color: #0dcaf0 !important;
    text-decoration: underline !important;
}

.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Mega-Prominent Toast Notification System */
.sava-toast-container {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100000; /* Over everything */
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 700px;
    pointer-events: none;
}

.sava-toast {
    background: rgba(5, 7, 10, 0.98);
    backdrop-filter: blur(25px);
    border: 3px solid var(--primary);
    border-radius: 30px;
    color: #fff;
    padding: 30px 60px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.9), 0 0 60px var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transform: translateY(-250%) scale(0.5);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: auto;
}

.sava-toast.show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.sava-toast.success { border-color: #00ffcc; box-shadow: 0 0 40px rgba(0,0,0,0.9), 0 0 80px rgba(0, 255, 204, 0.4); }
.sava-toast.danger { border-color: #ff0055; box-shadow: 0 0 40px rgba(0,0,0,0.9), 0 0 80px rgba(255, 0, 85, 0.4); }
.sava-toast.warning { border-color: #ffcc00; box-shadow: 0 0 40px rgba(0,0,0,0.9), 0 0 80px rgba(255, 204, 0, 0.4); }

.sava-toast i { font-size: 3rem; text-shadow: 0 0 20px currentColor; }
.sava-toast .toast-msg { 
    font-weight: 900; 
    letter-spacing: 3px; 
    font-size: 1.8rem; 
    text-transform: uppercase;
    font-family: var(--font-header);
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Professional Processor-Ready Footer --- */
.main-footer {
    background: #05070b !important; /* Force solid background for maximum readability */
    border-top: 2px solid rgba(0, 210, 255, 0.3);
    padding: 100px 0 50px 0;
    margin-top: 100px;
    font-family: var(--font-body);
    position: relative;
    z-index: 10; /* Ensure it stays above profile background layers */
}

.footer-heading {
    font-size: 1rem;
    margin-bottom: 30px;
    color: var(--primary);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
    position: relative;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.05rem;
    transition: all 0.2s ease;
    display: block;
    line-height: 1.4;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

/* Link Hover Descriptions */
.footer-links .link-desc {
    display: block;
    font-size: 0.75rem;
    color: rgba(184, 201, 217, 0.7);
    margin-top: 2px;
    font-weight: 400;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
    pointer-events: none;
    max-height: 0;
}

.footer-links li:hover .link-desc {
    opacity: 1;
    transform: translateY(0);
    max-height: 20px;
    margin-bottom: 5px;
}

.sub-footer {
    border-top: 1px solid var(--border-glass);
    padding-top: 40px;
    margin-top: 60px;
}

.sub-footer-text {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-contact-info {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-item {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-item i {
    color: var(--primary);
}

.trust-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 210, 255, 0.05);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-weight: 600;
    transition: all 0.3s ease;
}

.trust-badge i {
    font-size: 1.1rem;
}

.trust-badge:hover {
    background: rgba(0, 210, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

/* Legal Page Rich Content Styling */
.legal-content-section {
    margin-bottom: 40px;
}

.legal-content-section h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 25px;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.legal-content-section h3 i {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Glow Variations for Dividers */
.divider-cyan { border-bottom: 2px solid var(--primary); box-shadow: 0 4px 10px rgba(0, 210, 255, 0.2); }
.divider-purple { border-bottom: 2px solid var(--accent); box-shadow: 0 4px 10px rgba(125, 42, 232, 0.2); }
.divider-blue { border-bottom: 2px solid #3d5afe; box-shadow: 0 4px 10px rgba(61, 90, 254, 0.2); }

.legal-content-section p {
    line-height: 1.9;
    color: var(--text-main);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.legal-content-section ul {
    padding-left: 25px;
    margin-bottom: 25px;
}

.legal-content-section li {
    margin-bottom: 12px;
    color: var(--text-main);
    line-height: 1.6;
}

.last-updated-badge {
    background: rgba(125, 42, 232, 0.1);
    color: var(--accent);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 25px;
    border: 1px solid rgba(125, 42, 232, 0.2);
    letter-spacing: 0.5px;
}

/* Enforcement Ladder Styling */
.enforcement-ladder {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.enforcement-step {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    margin-bottom: 10px;
    padding: 12px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s ease;
}

.enforcement-step:hover {
    background: rgba(0, 210, 255, 0.05);
    border-color: var(--primary);
    transform: translateX(10px);
}

.step-number {
    font-family: var(--font-header);
    font-weight: 700;
    color: var(--primary);
    width: 30px;
}

.step-label {
    font-weight: 600;
    flex: 1;
}

/* Contact Block at Bottom of Legal Pages */
.legal-contact-block {
    background: rgba(0, 210, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-left: 4px solid var(--primary);
    padding: 30px;
    border-radius: 12px;
    margin-top: 60px;
}

.legal-contact-block h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.grid-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.grid-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1px;
}

.grid-value {
    font-family: var(--font-header);
    font-size: 0.95rem;
    color: var(--text-bright);
}

/* --- Navigation Dropdown Previews --- */
.nav-dropdown-preview {
    width: 350px;
    max-height: 450px;
    overflow-y: auto;
    background: rgba(10, 11, 16, 0.98) !important;
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass) !important;
    border-radius: 12px !important;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.dropdown-header-custom {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-header-custom h6 {
    margin: 0;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
}

.dropdown-item-preview {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 15px;
    align-items: flex-start;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.dropdown-item-preview:hover {
    background: rgba(0, 210, 255, 0.05);
}

.preview-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--primary);
    object-fit: cover;
}

.preview-content {
    flex: 1;
}

.preview-user {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 2px;
}

.preview-text {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.preview-time {
    display: block;
    font-size: 0.7rem;
    color: rgba(184, 201, 217, 0.5);
    margin-top: 5px;
}

.dropdown-footer-custom {
    padding: 10px;
    text-align: center;
}

.dropdown-footer-custom a {
    font-size: 0.8rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.dropdown-footer-custom a:hover {
    text-decoration: underline;
}

/* --- Social Login Buttons --- */
.btn-facebook {
    background: #1877F2;
    border: none;
    color: #fff !important;
    transition: all 0.3s ease;
}

.btn-facebook:hover {
    background: #166fe5;
    box-shadow: 0 0 20px rgba(24, 119, 242, 0.4);
    transform: translateY(-2px);
}

.btn-tiktok {
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff !important;
    transition: all 0.3s ease;
}

.btn-tiktok:hover {
    background: #111;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: #ff0050; /* TikTok brand color hint */
}

.social-login-separator {
    height: 1px;
}

/* Social Login Buttons */
.btn-facebook {
    background-color: #1877F2;
    color: white;
    border: none;
    transition: all 0.3s ease;
}
.btn-facebook:hover {
    background-color: #166FE5;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

.btn-tiktok {
    background-color: #000000;
    color: white;
    border: 2px solid #FE2C55;
    transition: all 0.3s ease;
}
.btn-tiktok:hover {
    background-color: #010101;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(254, 44, 85, 0.4);
}

.btn-outline-tiktok {
    background-color: transparent;
    color: white;
    border: 2px solid #25F4EE;
    transition: all 0.3s ease;
}
.btn-outline-tiktok:hover {
    background-color: rgba(37, 244, 238, 0.1);
    color: #25F4EE;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 244, 238, 0.4);
}

/* Emoji Hub Styles */
.emoji-picker-container { position: relative; display: inline-block; }
.emoji-picker-dropdown {
    position: absolute; bottom: 100%; right: 0; 
    background: #0a0a0a; border: 1px solid #0dcaf0; 
    border-radius: 8px; width: 250px; max-height: 300px;
    overflow-y: auto; z-index: 9999; margin-bottom: 10px;
    padding: 10px; box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    animation: fadeInScale 0.2s ease-out;
}
@keyframes fadeInScale { from { opacity:0; transform: scale(0.9); } to { opacity:1; transform: scale(1); } }
.emoji-picker-header { 
    font-size: 0.7rem; font-weight: 800; color: #0dcaf0; 
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 8px; border-bottom: 1px solid #222; padding-bottom: 4px;
}
.emoji-picker-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.emoji-item { 
    width: 32px; height: 32px; cursor: pointer; transition: transform 0.1s; 
    object-fit: contain; padding: 2px;
}
.emoji-item:hover { transform: scale(1.2); filter: drop-shadow(0 0 5px #0dcaf0); }
.emoji-trigger { cursor: pointer; opacity: 0.7; transition: opacity 0.2s; }
.emoji-trigger:hover { opacity: 1; color: #0dcaf0; }
