/* masters-hero.css - герой-секция страницы мастеров */

/* ========== ПЛАВНЫЙ ПЕРЕХОД С УЗОРОМ ========== */
.hero-transition {
    position: relative;
    margin-top: -1px;
    line-height: 0;
    z-index: 2;
}

.transition-pattern {
    height: 100px;
    background:
        repeating-linear-gradient(45deg,
            transparent,
            transparent 15px,
            rgba(255, 51, 102, 0.08) 15px,
            rgba(255, 51, 102, 0.08) 16px),
        repeating-linear-gradient(-45deg,
            transparent,
            transparent 15px,
            rgba(255, 51, 102, 0.05) 15px,
            rgba(255, 51, 102, 0.05) 16px),
        linear-gradient(to bottom,
            transparent 0%,
            var(--primary-bg) 70%);
    background-blend-mode: normal;
    position: relative;
}

/* Светлая тема: узор чуть ярче */
[data-theme="light"] .transition-pattern {
    background:
        repeating-linear-gradient(45deg,
            transparent,
            transparent 15px,
            rgba(255, 51, 102, 0.12) 15px,
            rgba(255, 51, 102, 0.12) 16px),
        repeating-linear-gradient(-45deg,
            transparent,
            transparent 15px,
            rgba(255, 51, 102, 0.08) 15px,
            rgba(255, 51, 102, 0.08) 16px),
        linear-gradient(to bottom,
            transparent 0%,
            var(--primary-bg) 70%);
}

.transition-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            var(--accent-color),
            var(--accent-light),
            var(--accent-color),
            transparent);
    opacity: 0.4;
}

.transition-pattern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to bottom, transparent, var(--primary-bg));
    pointer-events: none;
}

/* Адаптивность перехода */
@media (max-width: 768px) {
    .transition-pattern {
        height: 70px;
    }
}

@media (max-width: 480px) {
    .transition-pattern {
        height: 50px;
    }
}

/* ========== HERO SECTION ========== */
.masters-hero {
    position: relative;
    min-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: clamp(60px, 10vh, 100px) 0;
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
}

/* Планшеты */
@media (max-width: 992px) {
    .masters-hero {
        min-height: auto;
        padding: 60px 0;
    }
}

/* Телефоны */
@media (max-width: 768px) {
    .masters-hero {
        padding: 50px 0;
    }
}

/* Маленькие телефоны */
@media (max-width: 480px) {
    .masters-hero {
        padding: 40px 0;
    }
}

/* Ландшафтная ориентация */
@media (max-width: 900px) and (orientation: landscape) {
    .masters-hero {
        min-height: auto;
        padding: 40px 0;
    }
}

/* Фоновые элементы */
.masters-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.bg-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 70%;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    filter: blur(60px);
    animation: pulse 8s ease-in-out infinite;
}

/* Светлая тема: градиент заметнее */
[data-theme="light"] .bg-gradient {
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.18) 0%, transparent 70%);
}

.bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 30% 70%, rgba(255, 51, 102, 0.03) 2px, transparent 2px),
        radial-gradient(circle at 70% 20%, rgba(139, 92, 246, 0.02) 1px, transparent 1px);
    background-size: 50px 50px, 30px 30px;
    background-position: 0 0, 25px 25px;
}

/* Светлая тема: точки чуть заметнее */
[data-theme="light"] .bg-pattern {
    background-image:
        radial-gradient(circle at 30% 70%, rgba(255, 51, 102, 0.06) 2px, transparent 2px),
        radial-gradient(circle at 70% 20%, rgba(139, 92, 246, 0.05) 1px, transparent 1px);
}

/* Основной контент */
.masters-hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
    width: 100%;
}

/* Планшеты */
@media (max-width: 992px) {
    .masters-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
}

/* Текстовая часть */
.masters-hero-text {
    animation: fadeInUp 0.6s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 51, 102, 0.1);
    border-radius: 40px;
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-bottom: 24px;
    border: 1px solid rgba(255, 51, 102, 0.2);
    backdrop-filter: blur(5px);
}

/* Светлая тема: бейдж */
[data-theme="light"] .hero-badge {
    background: rgba(255, 51, 102, 0.08);
    border: 1px solid rgba(255, 51, 102, 0.15);
}

@media (max-width: 768px) {
    .hero-badge {
        font-size: 0.75rem;
        padding: 4px 14px;
        margin-bottom: 20px;
    }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(1.8rem, 5vw, 2.2rem);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }
}

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

.hero-description {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 90%;
}

/* Планшеты */
@media (max-width: 992px) {
    .hero-description {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }
}

@media (max-width: 480px) {
    .hero-description {
        font-size: 0.85rem;
    }
}

/* Кнопки */
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 992px) {
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
}

.btn {
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
    border: none;
}

@media (max-width: 768px) {
    .btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.3);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 51, 102, 0.4);
}

/* Светлая тема: кнопка */
[data-theme="light"] .btn-primary {
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.2);
}

[data-theme="light"] .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(255, 51, 102, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.btn-outline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Светлая тема: контурная кнопка */
[data-theme="light"] .btn-outline {
    border-color: #d0d0d0;
}

[data-theme="light"] .btn-outline:hover {
    background: rgba(255, 51, 102, 0.04);
}

/* ========== ВИЗУАЛЬНАЯ ЧАСТЬ ========== */
.masters-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.6s ease-out;
}

@media (max-width: 992px) {
    .masters-hero-visual {
        order: -1;
        margin: 0 auto;
    }
}

.hero-visual-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 992px) {
    .hero-visual-wrapper {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 768px) {
    .hero-visual-wrapper {
        width: 240px;
        height: 240px;
    }
}

@media (max-width: 480px) {
    .hero-visual-wrapper {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 360px) {
    .hero-visual-wrapper {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 900px) and (orientation: landscape) {
    .hero-visual-wrapper {
        width: 200px;
        height: 200px;
    }
}

/* Кольца */
.visual-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 51, 102, 0.25);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

/* Светлая тема: кольцо заметнее */
[data-theme="light"] .visual-ring {
    border-color: rgba(255, 51, 102, 0.35);
}

.visual-ring::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-color);
}

.visual-ring-2 {
    position: absolute;
    width: 85%;
    height: 85%;
    border: 2px dashed rgba(139, 92, 246, 0.2);
    border-radius: 50%;
    animation: rotate-reverse 15s linear infinite;
}

/* Светлая тема: пунктирное кольцо */
[data-theme="light"] .visual-ring-2 {
    border-color: rgba(139, 92, 246, 0.35);
}

/* Иконки специализаций */
.visual-icon {
    position: absolute;
    width: 56px;
    height: 56px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-color);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

/* Светлая тема: иконки */
[data-theme="light"] .visual-icon {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    border-color: #eaeaea;
    backdrop-filter: none;
}

@media (max-width: 992px) {
    .visual-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .visual-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .visual-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .visual-icon {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }
}

@media (max-width: 900px) and (orientation: landscape) {
    .visual-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

.visual-icon:hover {
    transform: scale(1.1) !important;
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.3);
}

/* Иконки мастеров */
.master-icon.tattoo {
    top: 0;
    left: 20%;
    animation: float 3s ease-in-out infinite;
}

.master-icon.piercing {
    bottom: 20px;
    right: 0;
    animation: float 3s ease-in-out infinite 0.5s;
}

.master-icon.biomod {
    bottom: 30%;
    left: -15px;
    animation: float 3s ease-in-out infinite 1s;
}

@media (max-width: 480px) {
    .master-icon.tattoo {
        top: -5px;
        left: 15%;
    }

    .master-icon.piercing {
        bottom: 5px;
        right: -5px;
    }

    .master-icon.biomod {
        bottom: 20%;
        left: -10px;
    }
}

/* Плавающие круги */
.floating-circle {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 51, 102, 0.1), transparent);
    border-radius: 50%;
    filter: blur(30px);
    animation: floatCircle 10s ease-in-out infinite;
    pointer-events: none;
}

/* Светлая тема: чуть заметнее */
[data-theme="light"] .floating-circle {
    background: radial-gradient(circle, rgba(255, 51, 102, 0.15), transparent);
}

.circle-1 {
    width: 180px;
    height: 180px;
    top: -50px;
    right: -50px;
    animation-delay: 0s;
}

.circle-2 {
    width: 120px;
    height: 120px;
    bottom: -40px;
    left: -40px;
    animation-delay: 2s;
}

.circle-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    right: -30px;
    animation-delay: 4s;
}

@media (max-width: 768px) {
    .circle-1 {
        width: 140px;
        height: 140px;
        top: -30px;
        right: -30px;
    }

    .circle-2 {
        width: 100px;
        height: 100px;
        bottom: -30px;
        left: -30px;
    }

    .circle-3 {
        width: 80px;
        height: 80px;
        right: -20px;
    }
}

@media (max-width: 480px) {
    .circle-1 {
        width: 100px;
        height: 100px;
        top: -20px;
        right: -20px;
    }

    .circle-2 {
        width: 80px;
        height: 80px;
        bottom: -20px;
        left: -20px;
    }

    .circle-3 {
        width: 60px;
        height: 60px;
        right: -15px;
    }
}

/* Скролл-хинт */
.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.6;
    transition: opacity var(--transition-normal);
    cursor: pointer;
    z-index: 2;
}

@media (max-width: 768px) {
    .scroll-hint {
        bottom: 20px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .scroll-hint {
        display: none;
    }
}

.scroll-hint:hover {
    opacity: 1;
}

.scroll-hint i {
    animation: bounce 2s infinite;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rotate-reverse {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-12px) translateX(5px);
    }
}

@keyframes floatCircle {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(15px, -15px) scale(1.1);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {

    .bg-gradient,
    .visual-ring,
    .visual-ring-2,
    .visual-icon,
    .floating-circle,
    .masters-hero-text,
    .masters-hero-visual,
    .scroll-hint i {
        animation: none;
    }

    .visual-icon:hover {
        transform: none !important;
    }
}