/*
Theme Name: VYRE Cloud Theme 26
Version: 1.0
Text Domain: vyre-theme-26
*/

/* --- Global Body Styles --- */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    color: #333;
}

body.dark-mode {
    background: #26272f;
    color: #fff;
}

body.dark-mode .site-header {
    background: #222;
    color: #fff;
}
body.dark-mode article {
    background: #333;
    color: #fff;
}

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
.site-header {
    background: #F9F9F9;
    color: #fff;
    padding: 20px 0;
}

.site-title {
    margin: 0; /* Removed inline margin from header */
}

.site-title a {
    color: #fff;
    text-decoration: none;
}

.site-logo {
    height: 50px;
    width: auto;
    display: block;
}

.logo-link {
    display: inline-block;
}

/* --- Navigation --- */
.site-nav {
    margin-top: 10px;
}

.primary-menu {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
}

.primary-menu li a {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    transition: background 0.3s;
}

.primary-menu li a:hover {
    background: rgba(255,255,255,0.2);
    border-radius: 5px;
}

/* --- Top Thin Bar --- */
#top-bar {
    margin: 0;
    border-radius: 0;
    width: 100%;
    background: linear-gradient(to right, #1582F7, #773ADC);
    color: #fff;
    font-size: 14px;
    padding: 6px 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
}

#top-bar a {
    color: #fff;
    text-decoration: none;
}

/* Apple-style toggle switch */
.theme-toggle-wrapper {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    margin-left: 4px;
    margin-right: 2px;
}

#theme-toggle {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 26px;
    transition: 0.3s ease;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border-radius: 50%;
    transition: 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#theme-toggle:checked + .toggle-slider {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.9);
}

#theme-toggle:checked + .toggle-slider:before {
    transform: translateX(24px) translateY(-50%);
    background: #1582F7;
}

.toggle-slider:hover {
    border-color: rgba(255, 255, 255, 0.9);
}

/* Dark mode toggle styles */
body.dark-mode .toggle-slider {
    background: rgba(0, 0, 0, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

body.dark-mode .toggle-slider:before {
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
}

body.dark-mode #theme-toggle:checked + .toggle-slider {
    background: rgba(117, 58, 220, 0.8) !important;
    border-color: #773ADC !important;
}

body.dark-mode #theme-toggle:checked + .toggle-slider:before {
    background: white !important;
    border: none !important;
}

/* --- Main Content --- */
#site-content {
    margin-top: 20px;
}

/* --- Footer --- */
#site-footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

/* --- Articles / Posts --- */
article {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

article h2 {
    margin-top: 0;
}

article .entry-content {
    margin-top: 10px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .primary-menu {
        flex-direction: column;
        gap: 10px;
    }
}
