/*
Theme Name: Faberlic Referral Theme
Description: Современная WordPress тема для реферального сайта Фаберлик с SEO оптимизацией
Author: Зафар
Version: 1.0
Text Domain: faberlic
*/

/* === ОСНОВНЫЕ ПЕРЕМЕННЫЕ === */
:root {
    /* Цвета */
    --primary-bg: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 235, 240, 1) 100%);
    --white: #ffffff;
    --pink-light: #ffebf0;
    --pink-soft: #ffd6e1;
    --peach-light: #ffeee6;
    --peach-soft: #ffb8a3;
    --gray-text: #333333;
    --gray-light: #666666;
    --shadow-soft: 0 10px 30px rgba(255, 182, 163, 0.15);
    --shadow-hover: 0 15px 40px rgba(255, 182, 163, 0.25);
    
    /* Шрифты */
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Nunito', sans-serif;
    
    /* Анимации */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }
  
  /* === БАЗОВЫЕ СТИЛИ === */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
    font-size: 16px;
  }
  
  body {
    font-family: var(--font-secondary);
    font-weight: 400;
    line-height: 1.6;
    color: var(--gray-text);
    background: var(--primary-bg);
    min-height: 100vh;
    overflow-x: hidden;
  }
  
  /* Подключение Google Fonts */
  @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');
  @import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');
  
  /* === ТИПОГРАФИКА === */
  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--gray-text);
  }
  
  h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
  }
  
  h2 {
    font-size: clamp(2rem, 4vw, 3rem);
  }
  
  h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
  }
  
  h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  }
  
  p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--gray-light);
  }
  
  a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
  }
  
  /* === КАСТОМНЫЙ КУРСОР === */
  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(255, 182, 163, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
  }
  
  body.cursor-active::before {
    opacity: 1;
  }
  
  /* === ОБЩИЕ КЛАССЫ === */
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  .section {
    padding: 80px 0;
    position: relative;
  }
  
  .section-title {
    text-align: center;
    margin-bottom: 3rem;
  }
  
  .section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gray-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* === КНОПКИ === */
  .btn {
    display: inline-block;
    padding: 15px 30px;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    position: relative;
    overflow: hidden;
  }
  
  .btn-primary {
    background: linear-gradient(135deg, var(--peach-soft) 0%, var(--pink-soft) 100%);
    color: var(--white);
    box-shadow: var(--shadow-soft);
  }
  
  .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
  }
  
  .btn-secondary {
    background: var(--white);
    color: var(--gray-text);
    border: 2px solid var(--pink-soft);
    box-shadow: var(--shadow-soft);
  }
  
  .btn-secondary:hover {
    background: var(--pink-light);
    transform: translateY(-3px);
  }
  
  /* === КАРТОЧКИ === */
  .card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
  }
  
  .card:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: var(--shadow-hover);
  }
  
  .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--peach-soft) 0%, var(--pink-soft) 100%);
  }
  
  /* === АНИМАЦИИ === */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes fadeInDown {
    from {
      opacity: 0;
      transform: translateY(-30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes slideInLeft {
    from {
      opacity: 0;
      transform: translateX(-50px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @keyframes slideInRight {
    from {
      opacity: 0;
      transform: translateX(50px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  .animate-fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
  }
  
  .animate-slide-left {
    opacity: 0;
    animation: slideInLeft 0.8s ease forwards;
  }
  
  .animate-slide-right {
    opacity: 0;
    animation: slideInRight 0.8s ease forwards;
  }
  
  /* Задержки для последовательной анимации */
  .animate-delay-1 { animation-delay: 0.1s; }
  .animate-delay-2 { animation-delay: 0.2s; }
  .animate-delay-3 { animation-delay: 0.3s; }
  .animate-delay-4 { animation-delay: 0.4s; }
  
  /* === АДАПТИВНОСТЬ === */
  @media (max-width: 768px) {
    .section {
      padding: 50px 0;
    }
    
    .container {
      padding: 0 15px;
    }
    
    .btn {
      padding: 12px 24px;
      font-size: 1rem;
    }
    
    .card {
      padding: 1.5rem;
    }
  }
  
  @media (max-width: 480px) {
    .section {
      padding: 40px 0;
    }
    
    .card {
      padding: 1rem;
    }
  }
  
  /* === SEO СКРЫТЫЙ ТЕКСТ === */
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  
  /* === WORDPRESS КЛАССЫ === */
  .aligncenter {
    text-align: center;
  }
  
  .alignleft {
    float: left;
    margin-right: 20px;
  }
  
  .alignright {
    float: right;
    margin-left: 20px;
  }
  
  .wp-caption {
    max-width: 100%;
    text-align: center;
  }
  
  .wp-caption-text {
    font-size: 0.9rem;
    color: var(--gray-light);
    margin-top: 0.5rem;
  }