/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

/* ===== SAKURA CANVAS ===== */
#sakura-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ===== PAGE LAYOUT ===== */
body {
    font-family: 'Inter', sans-serif;
    background-color: #0f0f12;
    color: #e2e8f0;
    line-height: 1.6;
}

.page-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: rgba(15, 15, 18, 0.85);
}

/* ===== HEADER ===== */
header {
    background: #09090b;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

header h1 {
    font-size: 2rem;
    background: linear-gradient(90deg, #6d28d9, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ===== NAVIGATION ===== */
nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.nav-link {
    padding: 10px 15px;
    background: rgba(30, 30, 40, 0.6);
    color: #94a3b8;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
    text-align: center;
    min-width: 100px;
}

.nav-link:hover, .nav-link.active {
    background: rgba(109, 40, 217, 0.3);
    color: #e2e8f0;
}

/* ===== CONTENT SECTIONS ===== */
.content-container {
    flex: 1;
}

.content-section {
    display: none;
    background: rgba(30, 30, 40, 0.6);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transform: translateZ(0);
}

.content-section.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== PURCHASES ===== */
.purchase-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.purchase-link {
    display: block;
    padding: 12px;
    background: rgba(109, 40, 217, 0.2);
    color: #e2e8f0;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    transition: background 0.3s;
}

.purchase-link:hover {
    background: rgba(109, 40, 217, 0.4);
}

/* ===== FRIENDS ===== */
.friends-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.friend-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.3s;
}

.friend-card:hover {
    transform: translateY(-3px);
}

.friend-link {
    color: #3b82f6;
    text-decoration: none;
    display: inline-block;
    margin-top: 5px;
    transition: color 0.3s;
}

.friend-link:hover {
    color: #6d28d9;
    text-decoration: underline;
}

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-grid img:hover {
    transform: scale(1.03);
}

/* ===== PROFILE ===== */
.profile-content {
    display: flex;
    gap: 20px;
    align-items: center;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #6d28d9;
    transition: transform 0.3s;
}

.profile-avatar:hover {
    transform: scale(1.05);
}

.profile-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.profile-btn {
    padding: 8px 15px;
    background: rgba(109, 40, 217, 0.2);
    color: #e2e8f0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.profile-btn:hover {
    background: rgba(109, 40, 217, 0.4);
    transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .profile-content {
        flex-direction: column;
        text-align: center;
    }

    .profile-actions {
        justify-content: center;
    }

    .friends-list {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .page-wrapper {
        padding: 15px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .content-section {
        padding: 15px;
    }

    .profile-avatar {
        width: 120px;
        height: 120px;
    }

    .nav-link {
        min-width: 80px;
        padding: 8px 10px;
        font-size: 14px;
    }
}
/* Гайд по созданию сайтов */
.guide-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.guide-step {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border-left: 3px solid #6d28d9;
}

.guide-step h3 {
    color: #3b82f6;
    margin-bottom: 15px;
}

.guide-step pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
}

.guide-step code {
    font-family: 'Courier New', monospace;
    color: #e2e8f0;
}

.resources-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.resource-link {
    display: block;
    padding: 12px;
    background: rgba(59, 130, 246, 0.2);
    color: #e2e8f0;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    text-align: center;
}

.resource-link:hover {
    background: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .resources-list {
        grid-template-columns: 1fr;
    }

    .guide-step pre {
        font-size: 14px;
        padding: 10px;
    }
}
transition-style: flip;
view-transition-name: none;

::view-transition-old(root) {
    animation: fade-out 0.5s ease-in-out;
}

::view-transition-new(root) {
    animation: fade-in 0.5s ease-in-out;
}

@keyframes fade-out {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* === Tooltip / Всплывающая подсказка === */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.tooltip-text {
    visibility: hidden;
    width: max-content;
    background: rgba(30, 30, 40, 0.95);
    color: #e2e8f0;
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1000;
    bottom: 100%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
    white-space: nowrap;
    font-size: 14px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    max-width: 250px;
}

/* === Optional: стрелочка сверху === */
.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(30, 30, 40, 0.95) transparent transparent transparent;
}
/* === Tooltip / Всплывающая подсказка === */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.tooltip-text {
    visibility: hidden;
    width: max-content;
    background: rgba(30, 30, 40, 0.95);
    color: #e2e8f0;
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1000;
    bottom: 100%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
    white-space: nowrap;
    font-size: 14px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    max-width: 250px;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(30, 30, 40, 0.95) transparent transparent transparent;

}
/* === Profile Card === */
.profile-card {
    background: linear-gradient(145deg, rgba(30, 30, 40, 0.8), rgba(40, 40, 50, 0.6));
    border-radius: 16px;
    padding: 25px;
    max-width: 500px;
    margin: 0 auto;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #6d28d9;
    box-shadow: 0 0 15px #a855f7;
    transition: all 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 0 25px #a855f7;
}

.profile-userinfo h3 {
    color: #f1f5f9;
    font-size: 1.5rem;
    margin: 0;
}

.user-status {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-top: 5px;
}

/* Stats Bar */
.profile-stats {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: #c084fc;
}

.stat-label {
    color: #94a3b8;
    font-size: 0.85rem;
}

/* Buttons */
.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.profile-btn {
    background: linear-gradient(to right, #8b5cf6, #6d28d9);
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.profile-btn:hover {
    background: linear-gradient(to right, #a855f7, #8b5cf6);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(109, 40, 217, 0.4);
}

.profile-btn-secondary {
    background: rgba(109, 40, 217, 0.2);
}

.profile-btn-secondary:hover {
    background: rgba(109, 40, 217, 0.3);
}
/* === Auth Forms === */
.auth-forms {
    max-width: 400px;
    margin: 0 auto;
    background: rgba(30, 30, 40, 0.8);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.login-form,
.register-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-form input,
.register-form input {
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

.switch-link {
    text-align: center;
    font-size: 0.9rem;
    color: #94a3b8;
}

.switch-link a {
    color: #c084fc;
    text-decoration: underline;
    cursor: pointer;
}

.hidden {
    display: none;
}