/* ============================================================
   Social One View — Стили сайта
   Домен: onebrainz.ru
   ============================================================ */

/* === ПЕРЕМЕННЫЕ === */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111118;
    --bg-card: rgba(26, 26, 46, 0.6);
    --accent: #e94560;
    --accent-2: #6c63ff;
    --accent-3: #a855f7;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --text-muted: #555570;
    --border: rgba(255, 255, 255, 0.08);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === СБРОС === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === ГРАДИЕНТНЫЙ ТЕКСТ === */
.gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === КНОПКИ === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.3);
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(233, 69, 96, 0.5);
}

.btn--outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--glass-border);
}
.btn--outline:hover {
    background: var(--glass);
    border-color: var(--accent);
}

.btn--register {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    padding: 10px 24px;
    font-size: 0.85rem;
    box-shadow: 0 2px 15px rgba(233, 69, 96, 0.25);
}
.btn--register:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 25px rgba(233, 69, 96, 0.4);
}

.btn--large { padding: 16px 40px; font-size: 1.05rem; }

/* === HEADER === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.header--scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
}
.logo__icon { 
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo__text {
    color: #fff;
    letter-spacing: -0.2px;
}

.nav { display: flex; gap: 32px; }
.nav__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}
.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    transition: var(--transition);
    border-radius: 2px;
}
.nav__link:hover { color: var(--text-primary); }
.nav__link:hover::after { width: 100%; }

/* Гамбургер */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Мобильное меню */
.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    z-index: 999;
    border-bottom: 1px solid var(--border);
}
.mobile-nav.active { display: flex; }
.mobile-nav__link {
    font-size: 1rem;
    color: var(--text-secondary);
    padding: 8px 0;
}
.mobile-nav__link:hover { color: var(--text-primary); }

/* === СЕКЦИЯ: HERO === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.4) 0%,
        rgba(10, 10, 10, 0.7) 50%,
        rgba(10, 10, 10, 0.95) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
    animation: fadeUp 1s ease-out;
}

.hero__title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 36px;
    font-weight: 400;
}

.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Индикатор прокрутки */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    animation: bounce 2s infinite;
}
.scroll-indicator__mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}
.scroll-indicator__wheel {
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 4px;
    animation: scroll-wheel 2s infinite;
}

/* === ЗАГОЛОВКИ СЕКЦИЙ === */
.section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 48px;
    font-weight: 400;
}
.section-title--light, .section-subtitle--light { color: #fff; }



/* === СЕКЦИЯ: ГАЛЕРЕЯ (КОЛЛАЖ) === */
.gallery {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
    gap: 15px;
    padding: 0 20px;
    max-width: 1800px;
    margin: 0 auto;
}

.gallery__item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: var(--bg-card);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.gallery__item:hover {
    transform: scale(1.02);
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

/* Настоящие размеры для мозаики */
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--big { grid-column: span 2; grid-row: span 2; }

.gallery__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.gallery__item:hover .gallery__photo {
    transform: scale(1.1);
}

.gallery__info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: white;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.gallery__item:hover .gallery__info {
    opacity: 1;
    transform: translateY(0);
}

.gallery__author {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.gallery__stats {
    font-size: 0.65rem;
    opacity: 0.8;
}

/* === СЕКЦИЯ: ИИ ИНСТРУМЕНТЫ === */
.ai-tools {
    padding: 100px 0;
    background: var(--bg-primary);
    position: relative;
}
.ai-tools::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.08), transparent 70%);
    pointer-events: none;
}

.ai-tools__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ai-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.ai-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    opacity: 0;
    transition: var(--transition);
}
.ai-card:hover {
    transform: translateY(-4px);
    border-color: rgba(233, 69, 96, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.ai-card:hover::before { opacity: 1; }

.ai-card__icon {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
}
.ai-card__icon svg { width: 100%; height: 100%; }

.ai-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.ai-card__desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}
.ai-card__tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    background: var(--glass);
    border: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
}

/* === СЕКЦИЯ: ПРЕИМУЩЕСТВА === */
.features {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(108, 99, 255, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-card__icon { font-size: 2.5rem; margin-bottom: 18px; display: flex; justify-content: center; align-items: center; }
.feature-svg {
    width: 48px;
    height: 48px;
    color: var(--accent);
    filter: drop-shadow(0 4px 10px rgba(233, 69, 96, 0.2));
}
.feature-card__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.feature-card__desc { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }

/* === СЕКЦИЯ: СООБЩЕСТВО === */
.community {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.community__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.community__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}
.community__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        var(--bg-secondary) 0%,
        rgba(10, 10, 10, 0.7) 30%,
        rgba(10, 10, 10, 0.7) 70%,
        var(--bg-primary) 100%
    );
}

.community__content { position: relative; z-index: 1; text-align: center; }

.stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 48px 0;
    flex-wrap: wrap;
}

.stat { text-align: center; }
.stat__number {
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}
.stat__label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 4px;
}

/* === FOOTER === */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    background: var(--bg-primary);
}
.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer__copy { color: var(--text-muted); font-size: 0.8rem; margin-top: 6px; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: var(--transition);
}
.footer__links a:hover { color: var(--text-primary); }

/* === TOAST (уведомление) === */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 16px 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2000;
    transition: bottom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.toast.show { bottom: 40px; }
.toast__icon { font-size: 1.3rem; }
.toast__text { font-size: 0.9rem; font-weight: 500; }

/* === МОДАЛЬНОЕ ОКНО === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
}
.modal-overlay.active { display: flex; }

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    width: 100%;
    max-width: 720px;
    padding: 40px;
    position: relative;
    animation: modalIn 0.3s ease-out forwards;
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}
.modal__close:hover { color: var(--accent); }

.modal__title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 6px;
}
.modal__subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

/* === ФОРМА РЕГИСТРАЦИИ === */
.form-section {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.form-section:last-of-type { border-bottom: none; }

.form-section__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.form-group {
    flex: 1;
    margin-bottom: 8px;
}
.form-group--full { width: 100%; }
.form-group--small { flex: 0.5; }

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.form-hint { font-weight: 400; color: var(--text-muted); }

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    transition: var(--transition);
}
.form-group input::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.15);
}

.form-group select option { background: var(--bg-primary); }

/* Загрузка файла */
.file-upload {
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}
.file-upload:hover { border-color: var(--accent); background: var(--glass); }
.file-upload__icon { font-size: 2rem; margin-bottom: 8px; }
.file-upload__text { color: var(--text-secondary); font-size: 0.85rem; }
.file-upload__link { color: var(--accent); font-weight: 600; }
.file-upload__input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* Теги */
.tag-select { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
    user-select: none;
}
.tag:hover { border-color: var(--accent-2); color: var(--text-primary); }
.tag[data-active="true"] {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    border-color: transparent;
}

/* Чекбоксы */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    margin-top: 2px;
    flex-shrink: 0;
}

/* Кнопки формы */
.form-actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

/* Сообщение об успехе */
.success-message {
    display: none;
    text-align: center;
    padding: 40px 0;
}
.success-message.active { display: block; }
.success-message__icon { font-size: 4rem; margin-bottom: 16px; }
.success-message__title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}
.success-message__text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 400px;
    margin: 0 auto 28px;
}

/* === АНИМАЦИИ === */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes scroll-wheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(8px); }
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Появление элементов при скролле */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 1024px) {
    .ai-tools__grid { grid-template-columns: repeat(2, 1fr); }
    .features__grid { grid-template-columns: repeat(2, 1fr); }
    .gallery__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .hamburger { display: flex; }
    .btn--register { display: none; }
    .header__inner .btn--register { display: none; }

    .ai-tools__grid { grid-template-columns: 1fr; }
    .features__grid { grid-template-columns: 1fr; }
    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 160px;
    }

    .stats { gap: 30px; }
    .form-row { flex-direction: column; gap: 0; }

    .modal { padding: 24px; }
    .form-actions { flex-direction: column; }
}

@media (max-width: 480px) {
    .gallery__grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
    .gallery__item--tall { grid-row: span 1; }
    .gallery__item--wide { grid-column: span 1; }
}
