/**
 * NOFI Design System - Tech Glass
 * Dark Theme (Default)
 */
body.dark {
    /* Background */
    --bg-primary: #0a0c10;
    --bg-secondary: rgba(22, 26, 30, 0.8);
    --bg-tertiary: #2a2f36;
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #a8b2c6;
    --text-muted: #6b7280;
    
    /* Accent - Neon orange (под логотип Nofi Botez) */
    --accent: #ff5e3a;
    --accent-hover: #ff7b5c;
    --accent-muted: #cc4a2e;
    --accent-rgb: 255, 94, 58;
    --accent-glow: 0 0 20px rgba(255, 94, 58, 0.4);
    --accent-glow-strong: 0 0 30px rgba(255, 94, 58, 0.7);
    
    /* UI Elements */
    --border: #2a2f36;
    --border-light: rgba(255, 94, 58, 0.2);
    --card-bg: #14181c;
    --card-border: #2a2f36;
    --header-bg: rgba(10, 12, 16, 0.8);
    
    /* Shadows & Effects */
    --shadow-sm: rgba(0, 0, 0, 0.2);
    --shadow-md: rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/**
 * Light Theme (Alternative)
 */
body.light {
    /* Background */
    --bg-primary: #f5f7fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e2e8f0;
    
    /* Text */
    --text-primary: #1a202c;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    /* Accent - Neon orange */
    --accent: #ff5e3a;
    --accent-hover: #ff7b5c;
    --accent-muted: #cc4a2e;
    --accent-rgb: 255, 94, 58;
    --accent-glow: 0 0 20px rgba(255, 94, 58, 0.25);
    
    /* UI Elements */
    --border: #e2e8f0;
    --border-light: rgba(255, 94, 58, 0.2);
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --header-bg: rgba(255, 255, 255, 0.9);
    
    /* Shadows & Effects */
    --shadow-sm: rgba(0, 0, 0, 0.05);
    --shadow-md: rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* =============================================
   GLOBAL STYLES
   ============================================= */

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    background-color: transparent;
}

/* =============================================
   HEADER
   ============================================= */

.header {
    background-color: var(--header-bg);
    border-bottom: 1px solid rgba(255, 94, 58, 0.2);
    backdrop-filter: blur(12px);
}

.nav__link {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.nav__link:hover,
.nav__link.active {
    color: var(--text-primary);
}

/* =============================================
   THEME TOGGLE
   ============================================= */

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background-color: rgba(255, 94, 58, 0.1);
    color: var(--text-primary);
}

/* =============================================
   MOBILE MENU
   ============================================= */

.mobile-menu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    background-color: var(--text-primary);
}

.nav--mobile {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

/* =============================================
   HERO SECTION
   ============================================= */

.hero {
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(255, 94, 58, 0.05) 100%);
}

.hero__title {
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent), #ff7b5c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    color: var(--text-secondary);
}

.stat {
    border: 1px solid var(--border);
    border-radius: 16px;
    background-color: rgba(var(--accent-rgb), 0.05);
    transition: all 0.3s ease;
}

.stat:hover {
    border-color: var(--accent);
    background-color: rgba(var(--accent-rgb), 0.1);
    box-shadow: var(--accent-glow);
}


.logo,
.hero__title--brand {
    color: var(--accent);
}

body.dark .logo__img {
    mix-blend-mode: screen;
}

body.light .logo__img {
    mix-blend-mode: multiply;
}

.stat__number {
    color: var(--accent);
}

.stat__label {
    color: var(--text-secondary);
}

/* =============================================
   CARDS
   ============================================= */

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(255, 94, 58, 0.2), var(--accent-glow);
}

/* Bot Cards */
.bot-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.bot-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 12px 32px rgba(255, 94, 58, 0.25), var(--accent-glow);
}

.bot-card__image {
    height: 200px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    transition: transform 0.3s ease;
}

.bot-card:hover .bot-card__image img {
    transform: scale(1.05);
}

.bot-card__header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--card-border);
}

.bot-card__title {
    color: var(--text-primary);
    font-weight: 600;
}

.bot-card__description {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.bot-card__button {
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bot-card__button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* Expanded Bot Card */
.bot-card__details {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-top: 1px solid var(--card-border);
}

.bot-card__full-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.bot-card__features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.bot-card__features li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.bot-card__features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.bot-card__qr {
    background-color: white;
    padding: 1rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    text-align: center;
}

.bot-card__button--action {
    background-color: white;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.bot-card__button--action:hover {
    background-color: var(--accent);
    color: white;
}

/* Channel & Social Cards */
.channel-card,
.social-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.channel-card:hover,
.social-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 12px 32px rgba(255, 94, 58, 0.25), var(--accent-glow);
}

.channel-card__title,
.social-card__title {
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
}

.channel-card__description,
.social-card__description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0.5rem 0 0;
}

.social-card__icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 94, 58, 0.5), 0 8px 16px rgba(255, 94, 58, 0.2);
}

.btn:active {
    transform: translateY(0);
}

.btn--secondary {
    background-color: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn--secondary:hover {
    background-color: var(--accent);
    color: white;
}

.btn--small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* =============================================
   FORMS
   ============================================= */

.form__field {
    margin-bottom: 1.5rem;
}

.form__label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form__label--required::after {
    content: " *";
    color: var(--accent);
}

.form__input,
.form__textarea {
    width: 100%;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form__input:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 94, 58, 0.15);
}

.form__input.error,
.form__textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__message {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    display: none;
}

.form__message.show {
    display: block;
}

.form__message--success {
    color: #10b981;
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
}

.form__message--error {
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
}

.form__submit {
    width: 100%;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 1rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form__submit:hover:not(:disabled) {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.form__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =============================================
   FOOTER (Timeweb-style)
   ============================================= */

.footer {
    margin-top: auto;
    padding: 0;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
}

.footer__top {
    background-color: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
}

.footer__top-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.footer__social-row {
    display: flex;
    gap: 0.75rem;
}

.footer__social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.footer__social-icon:hover {
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.1);
}

.footer__top-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-right: auto;
}

.footer__subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.footer__subscribe-btn:hover {
    box-shadow: var(--accent-glow);
    transform: translateY(-2px);
}

.footer__subscribe-icon {
    font-size: 1rem;
}

.footer__main {
    padding: 2.5rem 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (min-width: 600px) {
    .footer__grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
}

.footer__col--brand {
    grid-column: 1 / -1;
}

@media (min-width: 600px) {
    .footer__col--brand {
        grid-column: auto;
    }
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    text-decoration: none;
    color: var(--text-primary);
}

.footer__logo:hover {
    color: var(--accent);
}

.footer__logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer__logo-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer__contact-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.footer__contact-link {
    color: var(--accent);
    font-size: 0.95rem;
}

.footer__contact-link:hover {
    color: var(--accent-hover);
}

.footer__col-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer__list li {
    margin-bottom: 0.5rem;
}

.footer__list a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color var(--transition-normal);
}

.footer__list a:hover {
    color: var(--accent);
}

.footer__link--settings {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.footer__link--settings:hover {
    color: var(--accent);
}

.footer__settings-gear {
    display: block;
}

.footer__bottom {
    border-top: 1px solid var(--border);
}

.footer__bottom-inner {
    padding: 1.25rem 0;
}

.footer__copy {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* =============================================
   ANIMATIONS
   ============================================= */

section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth transitions for theme switching */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Button arrow animation */
.arrow-down {
    display: inline-block;
    transition: transform 0.3s ease;
}

.bot-card.expanded .arrow-down {
    transform: rotate(180deg);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.back-to-top__icon,
.back-to-top svg {
    width: 1.25rem;
    height: 1.25rem;
    display: block;
}

.back-to-top:hover {
    background-color: var(--accent-hover);
    transform: translateY(-4px);
}
