html { scroll-behavior: smooth; }
body { font-family: 'SUSE', sans-serif; margin: 0; background-color: #1e1e1e; color: #f0f0f0; font-size: 18pt; }
nav { background-color: #20c997; padding: 10px; position: sticky; top: 0; z-index: 1000; }
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 960px; margin: 0 auto; }
.logo-title-link { text-decoration: none; }
.logo-title { display: flex; align-items: center; }
.logo { height: 40px; width: 40px; margin-right: 15px; padding: 0px; border-radius: 50%; background-color: #f0f0f0; border: 3px solid #ff7f50; box-shadow: 0 2px 5px rgba(0,0,0,0.3); }
.site-title { font-size: 1.2em; font-weight: bold; color: black; }
nav ul { list-style: none; margin: 0; padding: 0; }
nav ul li { display: inline-block; margin-left: 20px; position: relative; vertical-align: middle; }
.suse-body {
           font-family: "SUSE", sans-serif;
           font-optical-sizing: auto;
           font-weight: 100;
           font-style: normal;
           font-size: 18pt;
}
nav a {
    color: black;
    text-decoration: none;
    padding-bottom: 5px; /* Creates space for the line */
    transition: all 0.3s ease;
    display: inline-block; /* Ensures transform works correctly */
}
nav a:hover {
    transform: scale(1.1); /* Makes text bigger */
}
nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ff7f50;
    transition: width 0.3s ease;
}
nav a:hover::after {
    width: 100%;
}
.container { max-width: 960px; margin: 0 auto; padding: 20px; text-align: center; }
.header-group { margin-bottom: 40px; }
h1, h2, h3 { color: #f0f0f0; }
.section-frame {
    background-color: #2a2a2a;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    scroll-margin-top: 80px; /* Offset for sticky nav */
}
.gallery { display: grid; grid-template-columns: 1fr; gap: 20px; justify-items: center; }
.gallery a { display: block; transition: transform 0.3s ease; text-decoration: none; color: inherit; }
.gallery a:hover { transform: scale(1.02); }
.gallery img { max-width: 100%; height: auto; border-radius: 10px; }

#posts .gallery {
    justify-items: stretch;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

.banner { max-width: 100%; height: auto; border-radius: 10px; margin-bottom: 20px; }
.section-frame a {
    color: #20c997;
}

/* Blog card styles */
.blog-card {
    background-color: #333;
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
    width: 100%;
}
.blog-card img { max-width: 100%; height: auto; }
.blog-card-content { padding: 15px; }

/* Styles for details and summary */
details {
    background-color: #333;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    border: 1px solid #444;
    text-align: left;
}

summary {
    font-weight: bold;
    cursor: pointer;
    color: #20c997;
}

/* Theme toggle switch */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.tooltip-text {
    visibility: hidden;
    width: 160px;
    background-color: #1e1e1e;
    color: #f0f0f0;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    top: -68%;
    left: 300%;
    margin-left: -80px;
    opacity: 0;
    transition: opacity 0.3s;
}

li:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.theme-switch {
    display: inline-block;
    height: 24px;
    position: relative;
    width: 50px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #2a2a2a;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}

.slider:before {
    background-color: #ff7f50;
    bottom: 4px;
    content: "";
    height: 16px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 16px;
    z-index: 2;
}

input:checked + .slider {
    background-color: #f0f0f0;
}

input:checked + .slider:before {
    transform: translateX(26px);
    background-color: #ff7f50;
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.slider-icons {
    display: flex;
    color: #ff7f50;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 5px;
}

.slider-icons i {
    color: #ff7f50;
    transition: color 0.4s;
}

.slider-icons .fa-sun {
    position: relative;
    left: -3%;
}

input:checked + .slider .fa-sun {
    color: #ff7f50;
}

input:checked + .slider .fa-moon {
    color: #f0f0f0;
}

input:not(:checked) + .slider .fa-moon {
    color: #ff7f50;
}

input:not(:checked) + .slider .fa-sun {
    color: #2a2a2a;
}

.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid #ff7f50;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .tooltip-text {
        display: none;
    }
}
