/* 💎 СЕКЦИЯ БРИЛЛИАНТЫ */

.diamond-section {
    position: relative;
    padding: 0 0 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    overflow: hidden;
}

/* Анимированный фон */
.diamond-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    animation: diamondBgPulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes diamondBgPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* Заголовок секции */
.diamond-header {
    text-align: center;
    margin-bottom: 16px;
}

.diamond-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
    font-size: 42px !important;
}

.diamond-icon {
    font-size: 48px;
    animation: diamondRotate 4s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(236, 72, 153, 0.6));
}

@keyframes diamondRotate {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-10deg) scale(1.1);
    }
    50% {
        transform: rotate(0deg) scale(1);
    }
    75% {
        transform: rotate(10deg) scale(1.1);
    }
}

.diamond-text {
    background: linear-gradient(135deg, 
        #60a5fa 0%, 
        #a78bfa 25%, 
        #ec4899 50%, 
        #f59e0b 75%, 
        #60a5fa 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: diamondShine 3s linear infinite;
    font-weight: 800;
    text-shadow: 0 0 30px rgba(236, 72, 153, 0.3);
}

@keyframes diamondShine {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

.diamond-sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    animation: diamondSparkle 2s ease-in-out infinite;
}

@keyframes diamondSparkle {
    0%, 100% {
        opacity: 0;
        transform: translate(0, 0) scale(0);
    }
    50% {
        opacity: 1;
        transform: translate(20px, -20px) scale(1);
    }
}

.diamond-desc {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 16px !important;
}

/* Кнопка перехода в каталог бриллиантов на главной */
.diamond-header-actions {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.diamond-catalog-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    line-height: 1;
    white-space: nowrap;
}

.diamond-catalog-btn svg {
    flex: 0 0 auto;
}

/* Карусель бриллиантов */
.diamond-wrapper {
    position: relative;
}

.diamond-item {
    position: relative;
    border: 2px solid rgba(236, 72, 153, 0.4);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.15));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    animation: diamondGlow 3s ease-in-out infinite;
}

@keyframes diamondGlow {
    0%, 100% {
        border-color: rgba(236, 72, 153, 0.4);
        box-shadow: 
            0 8px 20px rgba(236, 72, 153, 0.2),
            inset 0 0 10px rgba(255, 255, 255, 0.05);
    }
    50% {
        border-color: rgba(139, 92, 246, 0.6);
        box-shadow: 
            0 8px 25px rgba(139, 92, 246, 0.3),
            0 0 40px rgba(236, 72, 153, 0.2),
            inset 0 0 15px rgba(255, 255, 255, 0.1);
    }
}

.diamond-item:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: rgba(245, 158, 11, 0.8);
    box-shadow: 
        0 25px 50px rgba(236, 72, 153, 0.5),
        0 0 80px rgba(139, 92, 246, 0.4),
        0 0 40px rgba(245, 158, 11, 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.15);
    animation: none;
}

/* Эффект радужного сияния */
.diamond-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(139, 92, 246, 0.4) 25%,
        rgba(236, 72, 153, 0.5) 50%,
        rgba(245, 158, 11, 0.4) 75%,
        transparent 100%
    );
    transform: rotate(45deg);
    animation: diamondRainbowSweep 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes diamondRainbowSweep {
    0% {
        transform: translateX(-150%) translateY(-150%) rotate(45deg);
    }
    100% {
        transform: translateX(150%) translateY(150%) rotate(45deg);
    }
}

/* Летающие бриллианты */
.diamond-particle {
    position: absolute;
    width: 16px;
    height: 16px;
    opacity: 0;
    z-index: 3;
    pointer-events: none;
    font-size: 16px;
    filter: drop-shadow(0 0 8px rgba(236, 72, 153, 0.8));
}

.diamond-particle::before {
    content: '💎';
}

.particle-1 {
    top: 10%;
    left: 15%;
    animation: diamondFloat1 4s ease-in-out infinite;
}

.particle-2 {
    top: 50%;
    right: 20%;
    animation: diamondFloat2 5s ease-in-out infinite 1s;
}

.particle-3 {
    bottom: 20%;
    left: 70%;
    animation: diamondFloat3 4.5s ease-in-out infinite 2s;
}

@keyframes diamondFloat1 {
    0%, 100% {
        opacity: 0;
        transform: translate(0, 0) rotate(0deg) scale(0);
    }
    25% {
        opacity: 1;
        transform: translate(30px, -40px) rotate(180deg) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(60px, -30px) rotate(360deg) scale(1.2);
    }
    75% {
        opacity: 1;
        transform: translate(40px, -10px) rotate(540deg) scale(1);
    }
}

@keyframes diamondFloat2 {
    0%, 100% {
        opacity: 0;
        transform: translate(0, 0) rotate(0deg) scale(0);
    }
    25% {
        opacity: 1;
        transform: translate(-40px, -30px) rotate(-180deg) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-70px, -50px) rotate(-360deg) scale(1.3);
    }
    75% {
        opacity: 1;
        transform: translate(-50px, -20px) rotate(-540deg) scale(1);
    }
}

@keyframes diamondFloat3 {
    0%, 100% {
        opacity: 0;
        transform: translate(0, 0) rotate(0deg) scale(0);
    }
    25% {
        opacity: 1;
        transform: translate(20px, -50px) rotate(180deg) scale(1.1);
    }
    50% {
        opacity: 1;
        transform: translate(50px, -70px) rotate(360deg) scale(1.4);
    }
    75% {
        opacity: 1;
        transform: translate(35px, -30px) rotate(540deg) scale(1.1);
    }
}

/* Оверлей бриллианта */
.diamond-overlay {
    background: linear-gradient(
        to top,
        rgba(16, 16, 30, 0.95) 0%,
        rgba(16, 16, 30, 0.7) 50%,
        transparent 100%
    );
}

.diamond-price {
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    color: white !important;
    padding: 0.25rem 0.6rem !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.3);
    animation: diamondPricePulse 2s ease-in-out infinite;
}

.diamond-badge-icon {
    line-height: 1;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

.diamond-video-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.22);
    color: #fff;
    flex: 0 0 auto;
}

.diamond-video-icon svg {
    width: 12px;
    height: 12px;
    display: block;
}

.diamond-price-value {
    line-height: 1;
}


@keyframes diamondPricePulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(236, 72, 153, 0.8);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .diamond-section {
        padding: 30px 0;
    }
    
    .diamond-header {
        margin-bottom: 20px;
    }
    
    .diamond-title {
        font-size: 32px !important;
        gap: 10px;
    }
    
    .diamond-icon {
        font-size: 36px;
    }
    
    .diamond-text {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .diamond-section {
        padding: 20px 0;
    }
    
    .diamond-header {
        margin-bottom: 15px;
    }
    
    .diamond-title {
        font-size: 28px !important;
        flex-direction: column;
        gap: 5px;
    }
    
    .diamond-icon {
        font-size: 32px;
    }
}

