
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #0a0a1a;
    color: #f0f0f0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding-top: 20px;
}

#lava-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 20px;
}

.title-container {
    text-align: center;
    width: 100%;
}

h1 {
    display: inline-block;
    margin: 30px 0;
    padding: 10px 20px 0;
    font-weight: 800;
    font-size: 5rem;
    letter-spacing: -1.5px;
    line-height: 1.1;
    background: linear-gradient(90deg, #8A2BE2, #4169E1, #00BFFF);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: gradient 8s ease infinite, pulse 4s ease-in-out infinite;
}

.desktop-title {
    display: inline;
}

.mobile-title {
    display: none;
}

@media (max-width: 768px) {
    h1 {
        font-size: 3.5rem;
        letter-spacing: -0.5px;
        line-height: 1.2;
        padding: 10px 15px 0;
        margin: 20px 0;
        display: block;
    }
    
    .desktop-title {
        display: none;
    }
    
    .mobile-title {
        display: block;
        line-height: 1.1;
    }
    
    .mobile-break {
        display: none;
    }
    
    @media (max-width: 480px) {
        h1 {
            font-size: 3rem;
            line-height: 1.1;
        }
        
        .mobile-break {
            display: block;
            content: "";
            margin-bottom: -0.5em;
        }
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.025);
    }
}

.category {
    margin-bottom: 60px;
    position: relative;
}

.category:last-child {
    margin-bottom: 30px;
}

.category h2 {
    font-size: 1.8rem;
    margin: 0 0 30px 25px;
    color: #e0e0ff;
    position: relative;
    display: inline-block;
}

@media (max-width: 768px) {
    .category h2 {
        font-size: 2rem;
        font-weight: 700;
        margin: 30px auto 20px;
        position: relative;
        display: block;
        text-align: center;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }
}

.category h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #8A2BE2, #4169E1, #00BFFF);
    border-radius: 3px;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .category h2::after {
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
    }
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.tile {
    background: rgba(30, 30, 50, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.35);
    transition: transform 0.5s ease, box-shadow 0.3s ease, background 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #f0f0f0;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.tile:nth-child(odd) {
    animation-delay: 0.3s;
}

.tile:hover {
    transform: translateY(-15px);
    background: rgba(40, 40, 70, 0.6);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    animation-play-state: running;
}

.tile-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.tile-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tile-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hosting {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hosting[data-host="neocities"] {
    background: rgba(29, 155, 240, 0.2);
    color: #1d9bf0;
}

.hosting[data-host="drachenplasma"] {
    background: rgba(0, 199, 60, 0.2);
    color: #00c73c;
}

/* View All Button */
.view-all-container {
    text-align: center;
    margin: 40px 0;
    padding: 0 20px;
}

.view-all-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 99px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.view-all-button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.view-all-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.hosting[data-host="netlify"] {
    background: rgba(18, 147, 154, 0.2);
    color: #12939a;
}

.tile-description {
    font-size: 0.9rem;
    color: #b0b0c0;
    line-height: 1.4;
}

@media (max-width: 1200px) {
    .tiles {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .tiles {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .tiles {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }
    
    .tile-image {
        height: 180px;
    }
    
    .tile-content {
        padding: 15px;
    }
}

/* Button styles */
button, .button, #previewClose, #previewVisit {
    background: rgba(100, 100, 200, 0.2);
    color: #e0e0ff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

button:active, .button:active, #previewClose:active, #previewVisit:active {
    transform: translateY(0);
}

.tile-status {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tile-status[data-status="online"] {
    background-color: rgba(40, 167, 69, 0.15);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.tile-status[data-status="beta"] {
    background-color: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.tile-status[data-status="offline"] {
    background-color: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.tile-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Credit Link */
.legalinfo-container {
    text-align: center;
    margin: 60px 0 30px;
    padding: 0 20px;
}

.legalinfo-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    padding: 15px 25px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(100px);
}

.legalinfo-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.legalinfo-url {
    display: inline-block;
    margin-top: 5px;
    font-weight: 600;
    font-size: 1.1rem;
    color: #8a2be2;
    transition: color 0.3s ease;
}

.legalinfo-link:hover .legalinfo-url {
    color: #B19DFF;
    text-decoration: underline;
}

/* Login Container */
.login-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
}

/* Login Button */
.login-button {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 8px 16px 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    backdrop-filter: blur(5px);
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.login-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.login-button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.login-text {
    margin-top: 1px;
}

/* User Menu */
.user-menu {
    position: relative;
    display: inline-block;
}

.user-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 8px 16px 8px 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.user-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.username {
    font-weight: 500;
    font-size: 0.9rem;
}

.dropdown-arrow {
    font-size: 0.6rem;
    margin-left: 4px;
    transition: transform 0.2s;
}

.user-button[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a1a2e;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    padding: 8px 0;
    min-width: 180px;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.user-menu:hover .dropdown-menu,
.user-button[aria-expanded="true"] + .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    color: #e0e0ff;
    text-align: left;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.dropdown-item svg {
    width: 16px;
    height: 16px;
}

/* Login Overlay */
.login-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.login-content {
    background: #1a1a2e;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-content h2 {
    margin-bottom: 20px;
    color: #e0e0ff;
    text-align: center;
}

.close-login {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #a0a0c0;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

.close-login:hover {
    color: #ffffff;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: #b0b0d0;
    font-size: 0.9rem;
}

.login-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #2d2d4d;
    border-radius: 6px;
    background: #0f0f1f;
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.login-form input:focus {
    outline: none;
    border-color: #5e60ce;
    box-shadow: 0 0 0 2px rgba(94, 96, 206, 0.3);
}

.login-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #8A2BE2, #4169E1);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(65, 105, 225, 0.3);
}

.login-submit:active {
    transform: translateY(0);
}

/* Info Button Styles */
.info-button {
    position: fixed;
    top: 20px;
    right: 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    transform-origin: center;
}

.info-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.15);
}

.info-button:active {
    transform: scale(1.1);
}

.info-button svg {
    width: 24px;
    height: 24px;
    transition: opacity 0.2s ease;
}

.info-button:hover svg {
    opacity: 0.9;
}

/* Prevent layout shift by always showing scrollbar */
html {
    overflow-y: scroll;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    overflow-y: auto;
    padding-right: 0 !important;
}

.modal.show {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

/* Hide body scroll when modal is open */
body.modal-open {
    overflow: hidden;
    height: 100%;
    position: fixed;
    width: 100%;
}

.modal-content {
    background: #1a1a2e;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    margin: 20px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), 
                opacity 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
    transition-delay: 0.1s;
}

/* Close button */
.close-button {
    background: none;
    border: none;
    color: #a0a0a0;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    margin: -8px -8px -8px auto;
}

.modal-header {
padding: 16px 20px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
display: flex;
justify-content: space-between;
align-items: center;
}

.modal-header h3 {
margin: 0;
font-size: 1.3rem;
color: #fff;
font-weight: 600;
    color: #fff;
    font-weight: 600;
}

.close-button {
    background: none;
    border: none;
    color: #a0a0a0;
    font-size: 24px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 90%;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.close-button:hover {
    opacity: 1;
    transform: scale(1.2);
    background: rgba(255, 255, 255, 0.1);
}

.close-button:active {
    transform: scale(1.1);
}

/* Info Content */
.info-content {
    padding: 16px 20px 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.emoji {
    font-size: 20px;
    margin-right: 14px;
    margin-top: 2px;
    opacity: 0.9;
}

.info-label {
    color: #a0a0a0;
    font-size: 0.9rem;
    margin: 0 0 4px 0;
    font-weight: 500;
}

.info-text {
    color: #fff;
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}
