/* Custom Styles */

:root {
    --iron-black: #0B1220;
    --deep-navy: #0F1E33;
    --steel-navy: #162A45;

    --iron-blue: #1E90FF;
    --web-blue: #3BA7FF;
    --soft-blue: #6EC1FF;

    --steel-grey: #2A3A55;
    --muted-grey: #5E6E85;
    --border-grey: #1F2C42;

    --text-primary: #E6EEF8;
    --text-secondary: #B3C0D4;
    --text-muted: #8A9BB2;

    --success: #22C55E;
    --warning: #F59E0B;
    --error: #EF4444;
    

    /* Legacy aliases for compatibility */
    --primary-color: var(--iron-blue);
    --secondary-color: var(--muted-grey);
    --dark-color: var(--iron-black);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--iron-black);
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

 /* Light Mode */
body.light-mode {
    --iron-black: #F5F7FA;
    --deep-navy: #E8ECF1;
    --steel-navy: #D1DBEA;
    
    --text-primary: #1A1F2E;
    --text-secondary: #404B5A;
    --text-muted: #6B7785;
    
    --steel-grey: #C5D0E0;
    --muted-grey: #9CAABB;
    --border-grey: #D8E1EC;
}

main {
    flex: 1;
}

/* Navbar */
/* Light Mode - Navbar */
body.light-mode .navbar-brand,
body.light-mode .nav-link {
    color: black !important;
}

body.light-mode .nav-link:hover {
    color: var(--iron-blue) !important;
}

/* Navbar Styling */
.navbar {
    background: linear-gradient(135deg, var(--deep-navy) 0%, var(--steel-navy) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 0;
    border-bottom: 1px solid var(--border-grey);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand img {
    height: 64px;
    width: auto;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--iron-blue) !important;
}

/* Theme Toggle Switch */
.theme-toggle {
    font-size: 14px;
    position: relative;
    display: inline-block;
    width: 3.5em;
    height: 2em;
    transform-style: preserve-3d;
    perspective: 500px;
    margin-left: 1rem;
}

.theme-toggle::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    filter: blur(15px);
    z-index: -1;
    border-radius: 50px;
    background-color: #d8ff99;
    background-image: radial-gradient(at 21% 46%, hsla(183,65%,60%,1) 0px, transparent 50%),
    radial-gradient(at 23% 25%, hsla(359,74%,70%,1) 0px, transparent 50%),
    radial-gradient(at 20% 1%, hsla(267,83%,75%,1) 0px, transparent 50%),
    radial-gradient(at 86% 87%, hsla(204,69%,68%,1) 0px, transparent 50%),
    radial-gradient(at 99% 41%, hsla(171,72%,77%,1) 0px, transparent 50%),
    radial-gradient(at 55% 24%, hsla(138,60%,62%,1) 0px, transparent 50%);
    opacity: 0.7;
}

.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #17202A;
    transition: .4s;
    border-radius: 30px;
}

.theme-slider:before {
    position: absolute;
    content: "";
    height: 1.4em;
    width: 1.4em;
    left: 0.3em;
    bottom: 0.3em;
    transition: .4s;
    border-radius: 50%;
    box-shadow: rgba(0, 0, 0, 0.17) 0px -10px 10px 0px inset,
        rgba(0, 0, 0, 0.09) 0px -1px 15px -8px;
    background-color: #ff99fd;
    background-image: radial-gradient(at 81% 39%, hsla(327,79%,79%,1) 0px, transparent 50%),
    radial-gradient(at 11% 72%, hsla(264,64%,79%,1) 0px, transparent 50%),
    radial-gradient(at 23% 20%, hsla(75,98%,71%,1) 0px, transparent 50%);
}

.theme-toggle input:checked + .theme-slider {
    background-color: #fdfefedc;
}

.theme-toggle input:checked + .theme-slider:before {
    transform: translateX(1.5em);
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.card-img-top {
    transition: opacity 0.3s ease;
}

.card:hover .card-img-top {
    opacity: 0.9;
}

/* Jumbotron */
.jumbotron {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.jumbotron .btn {
    margin-top: 1rem;
}

/* Footer */
footer {
    background-color: var(--iron-black);
    color: var(--text-secondary);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--border-grey);
}

footer p {
    margin: 0;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--steel-navy);
    color: var(--text-primary);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.2rem;
}

.footer-social a:hover {
    background: var(--iron-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(30, 144, 255, 0.4);
}

/* Post Content */
.post-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}

/* Forms */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Pagination */
.pagination {
    margin-top: 2rem;
}

.page-link {
    color: var(--primary-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Logo Animation */
/* ----------------------------------------------
 * Generated by Animista on 2025-12-26 14:2:38
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */
@keyframes scale-up-left {
    0% {
        transform: scale(.5);
        transform-origin: 0 50%;
    }
    100% {
        transform: scale(1);
        transform-origin: 0 50%;
    }
}

.scale-up-left {
    animation: scale-up-left 1s cubic-bezier(.39, .575, .565, 1.000) both;
}

/* Responsive */
@media (max-width: 768px) {
    .jumbotron {
        padding: 2rem 1rem !important;
    }
    
    .jumbotron h1 {
        font-size: 2rem;
    }
}
