
/*
Theme Name: michaelstaake
Theme URI: 
Author: Michael Staake x Grok x Copilot
Author URI: 
Description: 
Version: 2025.12.22
Text Domain: michaelstaake
*/

@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    background: #300a24 url('img/wallpaper.jpg') center center fixed;
    background-size: cover;
    font-family: 'Ubuntu', Arial, sans-serif;
    color: #333;
    padding-top: 0;
}

/* Content areas use Inter font */
.card-body,
.card-body p,
.card-body li,
.card-body blockquote,
.card-body pre,
article {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* OS-style Window */
.os-window {
    max-width: 1200px;
    margin: 0.5rem auto 1rem auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Tighter spacing for windows in listings */
.os-window.mb-4 {
    margin-bottom: 1rem !important;
}

/* Tighter spacing for main containers */
main.container.my-4 {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

/* Maximized state */
.os-window.maximized {
    max-width: 100%;
    width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Window Title Bar */
.window-titlebar {
    background: linear-gradient(to bottom, #58534DFF, #363233FF) !important;
    height: 36px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    position: relative;
}

/* Window Title */
.window-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    font-weight: 500;
}

/* Window Buttons Container */
.window-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Individual Window Buttons */
.window-button {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

/* Close button (red/orange) */
.window-button.close {
    background: #f46b5d;
}

.window-button.close:hover {
    background: #f45d4d;
}

/* Minimize button (yellow/orange) */
.window-button.minimize {
    background: #f7bf2f;
}

.window-button.minimize:hover {
    background: #f7b01f;
}

/* Maximize button (green) */
.window-button.maximize {
    background: #5fcf65;
}

.window-button.maximize:hover {
    background: #4fbf55;
}

/* Window Content Area */
.window-content {
    background: #ffffff;
}

.compact-window .window-content {
    min-height: auto;
}

.window-content .card {
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
}

/* Header - PURPLE */
.site-header {
    position: relative;
    background: linear-gradient(to bottom, #883389, #762572) !important;
    color: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    padding: 12px 0;
    font-size: 0.95rem;
}

.site-header .container {
    max-width: 1230px;
    padding-left: 15px;
    padding-right: 15px;
    margin: 0 auto;
}

/* Default large-screen layout (>1000px): horizontal */
.header-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header-left {
    text-align: left;
}

.header-right {
    display: flex;
    align-items: center;
}

/* Site title */
.header-left .site-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0;
}

.header-left .site-title a {
    color: white;
    text-decoration: none;
}

.header-left .site-description {
    font-size: 0.85rem;
    opacity: 0.9;
    margin: 4px 0 0;
}

/* Menu items */
.header-right .navbar-nav {
    display: flex;
    flex-direction: row;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-right .navbar-nav .nav-link {
    color: white !important;
    padding: 8px 14px !important;
    border-radius: 4px;
    transition: background 0.2s;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
}

.header-right .navbar-nav .nav-link i {
    font-size: 1.2em;
    opacity: 0.9;
}

.header-right .navbar-nav .nav-link:hover {
    background: rgba(255,255,255,0.15);
}

.header-right .navbar-nav .nav-link:hover i {
    opacity: 1;
}

/* Current page */
.header-right .navbar-nav .nav-item.current-menu-item .nav-link,
.header-right .navbar-nav .nav-item.current-menu-ancestor .nav-link {
    background: rgba(255,255,255,0.15) !important;
}

.header-right .navbar-nav .nav-item.current-menu-item .nav-link i,
.header-right .navbar-nav .nav-item.current-menu-ancestor .nav-link i {
    opacity: 1;
}

/* Search Modal */
#searchModal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
}

#searchModal .window-titlebar {
    border-radius: 12px 12px 0 0;
}

#searchModal .window-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    font-weight: 500;
}

#searchModal .modal-header {
    background: transparent;
}

#searchModal .btn-close {
    filter: invert(1);
    opacity: 0.7;
}

#searchModal .btn-close:hover {
    opacity: 1;
}

#searchModal .input-group .form-control {
    border-radius: 6px 0 0 6px !important;
    border: 2px solid #762572;
    border-right: none;
}

#searchModal .input-group .form-control:focus {
    outline: none;
    box-shadow: none;
    border-color: #762572;
}

#searchModal .input-group .btn {
    border-radius: 0 6px 6px 0 !important;
    border: 2px solid #762572;
    border-left: none;
}

/* Stacked & centered layout at 1000px and below */
@media (max-width: 1000px) {
    .header-inner {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center;
    }

    .header-left {
        text-align: center !important;
        margin-bottom: 16px;
    }

    .header-right {
        width: 100%;
        justify-content: center !important;
    }

    .header-right .navbar-nav {
        justify-content: center !important;
        flex-wrap: wrap;
    }

    .site-header {
        padding: 15px 0;
    }

    body {
        padding-top: 0;
    }
}

/* Buttons */
.btn-primary,
.btn,
button[type="submit"],
a.btn-primary,
a.btn,
a[type="submit"] {
    background: #333333 !important;
    border: none !important;
    border-radius: 6px !important;
    color: white !important;
    box-shadow: none !important;
    text-decoration: none !important;
    font-family: 'Ubuntu', Arial, sans-serif !important;
}

.btn-primary:hover,
.btn:hover,
button[type="submit"]:hover,
a.btn-primary:hover,
a.btn:hover,
a[type="submit"]:hover {
    background: #1F1F1F !important;
    color: white !important;
    text-decoration: none !important;
}

.btn-primary a,
.btn a,
button[type="submit"] a {
    color: white !important;
    text-decoration: none !important;
}

.btn-primary:hover a,
.btn:hover a,
button[type="submit"]:hover a {
    color: white !important;
    text-decoration: none !important;
}

/* Links */
a { color: #883389; }
a:hover { color: #9a4d99; text-decoration: underline; }

/* Pagination */
nav.d-flex.justify-content-between {
    margin: 1rem auto;
    max-width: 1200px;
}

nav.d-flex.justify-content-between a {
    background: #333333;
    color: white !important;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none !important;
    display: inline-block;
    transition: background 0.3s ease;
}

nav.d-flex.justify-content-between a:hover {
    background: #2E2E2E;
    color: white !important;
    text-decoration: none !important;
}

/* Cards */
.card {
    background: #ffffff;
    border: 1px solid #d3d3d3;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Archive headers */
.search-header .card-header,
.tag-header .card-header {
    background: #f8f9fa;
    color: #333;
    border-bottom: 2px solid #e9ecef;
}

.search-header .card-header h2,
.tag-header .card-header h2 {
    font-size: 1.5rem;
    font-weight: 500;
}

.search-header .card-header h2 strong,
.tag-header .card-header h2 strong {
    color: #883389;
}

.search-header .card-header small,
.tag-header .card-header small {
    opacity: 0.8;
}

.tag-header .card-header p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Post title links in listing pages */
.os-window .card-header h2 a,
.os-window .card-header h3 a {
    text-decoration: none !important;
}

.os-window .card-header h2 a:hover,
.os-window .card-header h3 a:hover {
    text-decoration: underline !important;
}

/* Tags */
.post-tags, .post-tags-large { font-size: 0.85rem; }
.post-tags i { margin-right: 6px; opacity: 0.8; }
.tag-link, .tag-link-large {
    background: #f3e5f5;
    color: #762572;
    padding: 2px 8px;
    margin-right: 6px;
    margin-bottom: 6px;
    border-radius: 4px;
    border: 1px solid #e1bee7;
    text-decoration: none;
    display: inline-block;
}
.tag-link a, .tag-link-large a {
    color: #762572;
    text-decoration: none;
}
.tag-link:hover, .tag-link-large:hover {
    background: #762572;
    color: white !important;
    text-decoration: none !important;
}
.tag-link:hover a, .tag-link-large:hover a {
    color: white !important;
    text-decoration: none !important;
}
.tag-link-large { font-size: 1rem; padding: 6px 12px; margin-top: 4px; }


/* SIMPLE FOOTER - white text, centered */
.site-footer {
    padding: 20px 10px;
    text-align: center;
    color: white;
    font-size: 0.95rem;
    /* background: linear-gradient(to bottom, #58534DFF, #363233FF) !important; */
}

.site-footer a {
    color: white;
    text-decoration: underline;
}

.site-footer p {
    margin: 0;
    padding: 0;
}

.site-footer a:hover {
    opacity: 0.8;
}

/* Admin bar */
/* body.admin-bar .site-header { top: 32px; }
body.admin-bar { padding-top: 122px !important; }
@media (max-width: 782px) {
    body.admin-bar .site-header { top: 46px; }
    body.admin-bar { padding-top: 206px !important; }
} */

/* Easter Egg Modal */
.easter-egg-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
}

.easter-egg-content {
    background: linear-gradient(135deg, #883389, #9a4d99);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
    text-align: center;
    color: white;
    position: relative;
    max-width: 500px;
    animation: modalBounce 0.5s ease-out;
}

@keyframes modalBounce {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.easter-egg-content h2 {
    margin: 0 0 20px 0;
    font-size: 2rem;
    color: white;
}

.easter-egg-content p {
    margin: 10px 0;
    font-size: 1.2rem;
    color: white;
}

.easter-egg-subtitle {
    font-size: 1rem !important;
    opacity: 0.9;
    margin-top: 20px !important;
}

.easter-egg-offer {
    font-size: 1.3rem !important;
    margin-top: 25px !important;
    margin-bottom: 15px !important;
    color: white;
}

.easter-egg-link {
    font-size: 1rem !important;
    margin-top: 10px !important;
}

.easter-egg-link a {
    color: #ffffff;
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.4);
}

.easter-egg-link a:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-2px);
}

.easter-egg-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 35px;
    font-weight: bold;
    color: white;
    cursor: pointer;
}

.easter-egg-close:hover {
    opacity: 0.8;
}

/* Confetti Animation */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    top: -10px;
    z-index: 9999;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}