/* ========================================
 *  GLOBAL & RESET
 *  ======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Roboto', sans-serif;
    background-color: #121212;
    color: #E0E0E0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    line-height: 1.6;
}

/* ========================================
 *  LANGUAGE SWITCHER
 *  ======================================== */
.lang-switcher {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 100;
    display: flex;
    gap: 0.5rem;
    background: #1E1E1E;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid #333;
}

.lang-btn {
    background: none;
    border: none;
    color: #E0E0E0;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    transition: all 0.3s ease;
}

.lang-btn:hover { color: #FFD700; }

/* ========================================
 *  HEADER
 *  ======================================== */
header {
    text-align: center;
    padding: 4rem 1rem 2rem;
    max-width: 800px;
    position: relative;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid #FFD700;
    object-fit: cover;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

h1 {
    color: #FFD700;
    font-size: 2.5rem;
    margin: 0.5rem 0;
    font-weight: 700;
}

header p {
    font-size: 1.1rem;
    margin: 0 auto 2rem;
    max-width: 600px;
    color: #BBBBBB;
}

/* ========================================
 *  LINKS GRID
 *  ======================================== */
.links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    max-width: 800px;
    padding: 0 1rem 2rem;
    width: 100%;
}

.link {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1E1E1E;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: #E0E0E0;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.link:hover {
    background-color: #333333;
    transform: translateY(-2px);
    border-color: #FFD700;
}

.link i {
    margin-right: 0.5rem;
    font-size: 1.5rem;
    color: #FFD700;
}

/* Bluesky icon gold */
.link i.fa-bluesky { color: #FFD700 !important; }

/* ========================================
 *  GALLERY GRID
 *  ======================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 2px solid #333;
    transition: all 0.3s ease;
    aspect-ratio: 1 / 1;
}

.gallery-item:hover {
    transform: translateY(-6px);
    border-color: #FFD700;
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.4s ease;
}

/* ========================================
 *  NSFW SECTION
 *  ======================================== */
.nsfw-section {
    max-width: 1000px;
    width: 100%;
    padding: 2rem 1rem;
    text-align: center;
}

.nsfw-toggle {
    background: #1E1E1E;
    color: #FFD700;
    border: 2px solid #FFD700;
    padding: 1.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.nsfw-toggle:hover {
    background: #333;
    transform: translateY(-2px);
}

.warning { color: #FF6B6B; font-weight: bold; font-size: 1.2rem; }
.prompt { font-size: 0.9rem; color: #E0E0E0; }

.nsfw-content {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #1A1A1A;
    border-radius: 12px;
    border: 1px solid #333;
    display: none;
}

.nsfw-note { color: #AAA; font-size: 0.9rem; margin-bottom: 1rem; }

.nsfw-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.nsfw-link {
    background: #2A2A2A;
    color: #FFD700;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.3s;
}

.nsfw-link:hover {
    background: #FFD700;
    color: #000;
}

/* ========================================
 *  NSFW BLUR
 *  ======================================== */
.nsfw-preview {
    cursor: pointer;
}

.blurred-img {
    filter: blur(20px) brightness(0.6);
}

.nsfw-preview.unblurred img {
    filter: none;
}

.blur-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    color: #FFD700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 10px;
    pointer-events: none;
    z-index: 2;
    text-shadow: 0 0 10px rgba(0,0,0,0.9);
    transition: opacity 0.3s ease;
}

.nsfw-preview.unblurred .blur-overlay {
    opacity: 0;
    pointer-events: none;
}

/* ========================================
 *  TITLES
 *  ======================================== */
.gallery h2,
.nsfw-content h3 {
    color: #FFD700;
    font-size: 1.8rem;
    margin: 2rem 0 1.5rem;
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.gallery h2::before,
.gallery h2::after,
.nsfw-content h3::before,
.nsfw-content h3::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 60px;
    height: 2px;
    background: #FFD700;
}

.gallery h2::before,
.nsfw-content h3::before { left: 10%; }
.gallery h2::after,
.nsfw-content h3::after { right: 10%; }

/* ========================================
 *  FOOTER
 *  ======================================== */
footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    margin-top: auto;
    width: 100%;
    background-color: #0A0A0A;
    border-top: 1px solid #333;
}

/* ========================================
 *  RESPONSIVE
 *  ======================================== */
@media (max-width: 768px) {
    .lang-switcher { top: 0.5rem; right: 0.5rem; }
    .gallery h2::before,
    .gallery h2::after,
    .nsfw-content h3::before,
    .nsfw-content h3::after { width: 30px; }
    .gallery h2::before,
    .nsfw-content h3::before { left: 5%; }
    .gallery h2::after,
    .nsfw-content h3::after { right: 5%; }
    .links { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    h1 { font-size: 2rem; }
    header { padding: 3rem 1rem 1.5rem; }
    .avatar { width: 120px; height: 120px; }
}
