/* ==========================================================================
   Hero Platform Showcase Animation
   HesapliKupon.com - Triangle Platform Display
   ========================================================================== */

.platform-showcase {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Triangle SVG Lines */
.triangle-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.triangle-path {
    stroke-dashoffset: 1000;
    animation: dashMove 20s linear infinite;
}

@keyframes dashMove {
    to {
        stroke-dashoffset: 0;
    }
}

.triangle-glow {
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

/* Platform Nodes */
.platform-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

/* Node Positions - Triangle Layout */
.node-chrome {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.node-android {
    bottom: 20px;
    left: 10%;
}

.node-ios {
    bottom: 20px;
    right: 10%;
}

/* Node Ring */
.node-ring {
    position: absolute;
    width: 90px;
    height: 90px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: ringRotate 8s linear infinite;
}

.node-ring::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@keyframes ringRotate {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Node Icon Container */
.node-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    animation: nodeFloat 4s ease-in-out infinite;
}

.node-chrome .node-icon {
    animation-delay: 0s;
}

.node-android .node-icon {
    animation-delay: 1.3s;
}

.node-ios .node-icon {
    animation-delay: 2.6s;
}

@keyframes nodeFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.node-icon:hover {
    transform: scale(1.1) translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.node-icon svg {
    width: 36px;
    height: 36px;
}

/* Android Icon Color */
.android-icon {
    color: #3DDC84;
}

/* iOS Icon Color */
.ios-icon {
    color: #fff;
}

/* Node Label */
.node-label {
    margin-top: 12px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: labelPulse 2s ease-in-out infinite;
}

@keyframes labelPulse {
    0%, 100% {
        opacity: 0.9;
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    }
}

/* Node Pulse Effect */
.node-pulse {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 20px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.node-pulse::before,
.node-pulse::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    animation: nodePulse 2s ease-out infinite;
}

.node-pulse::after {
    animation-delay: 1s;
}

@keyframes nodePulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Center Heart */
.center-heart {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
}

.heart-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 100, 100, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: heartGlow 1.5s ease-in-out infinite;
}

@keyframes heartGlow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.8;
    }
}

.heart-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
    box-shadow: 0 10px 40px rgba(255, 100, 100, 0.5);
    animation: heartBeat 1s ease-in-out infinite;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    15% {
        transform: scale(1.15);
    }
    30% {
        transform: scale(1);
    }
    45% {
        transform: scale(1.1);
    }
    60% {
        transform: scale(1);
    }
}

.heart-icon svg {
    width: 30px;
    height: 30px;
    color: #fff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Heart Rings */
.heart-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.heart-ring {
    position: absolute;
    border: 2px solid rgba(255, 100, 100, 0.3);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    animation: ringExpand 3s ease-out infinite;
}

.ring-1 {
    width: 80px;
    height: 80px;
    margin: -40px 0 0 -40px;
    animation-delay: 0s;
}

.ring-2 {
    width: 100px;
    height: 100px;
    margin: -50px 0 0 -50px;
    animation-delay: 0.5s;
}

.ring-3 {
    width: 120px;
    height: 120px;
    margin: -60px 0 0 -60px;
    animation-delay: 1s;
}

@keyframes ringExpand {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Floating Particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 5;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particleFloat 6s ease-in-out infinite;
}

.particle:nth-child(1) {
    left: 20%;
    top: 30%;
    animation-delay: 0s;
    animation-duration: 5s;
}

.particle:nth-child(2) {
    left: 70%;
    top: 20%;
    animation-delay: 1s;
    animation-duration: 7s;
}

.particle:nth-child(3) {
    left: 40%;
    top: 70%;
    animation-delay: 2s;
    animation-duration: 6s;
}

.particle:nth-child(4) {
    left: 80%;
    top: 60%;
    animation-delay: 0.5s;
    animation-duration: 8s;
}

.particle:nth-child(5) {
    left: 10%;
    top: 50%;
    animation-delay: 1.5s;
    animation-duration: 5.5s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translateY(-30px) translateX(10px);
        opacity: 0.8;
    }
    90% {
        opacity: 1;
    }
}

/* Connection Lines Animation */
.platform-showcase::before,
.platform-showcase::after {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.3), transparent);
    z-index: 1;
}

/* Responsive */
@media (max-width: 992px) {
    .platform-showcase {
        height: 350px;
        margin-top: 30px;
    }

    .node-icon {
        width: 60px;
        height: 60px;
    }

    .node-icon svg {
        width: 30px;
        height: 30px;
    }

    .node-ring {
        width: 75px;
        height: 75px;
    }

    .node-pulse {
        width: 60px;
        height: 60px;
    }

    .node-label {
        font-size: 0.7rem;
        padding: 5px 12px;
    }

    .heart-icon {
        width: 50px;
        height: 50px;
    }

    .heart-icon svg {
        width: 25px;
        height: 25px;
    }

    .node-android {
        left: 5%;
    }

    .node-ios {
        right: 5%;
    }
}

@media (max-width: 768px) {
    .platform-showcase {
        height: 300px;
        transform: scale(0.85);
    }

    .triangle-lines {
        opacity: 0.5;
    }
}

@media (max-width: 576px) {
    .platform-showcase {
        height: 280px;
        transform: scale(0.75);
    }

    .node-icon {
        width: 50px;
        height: 50px;
        border-radius: 15px;
    }

    .node-ring {
        width: 65px;
        height: 65px;
    }

    .node-label {
        font-size: 0.65rem;
        padding: 4px 10px;
    }

    .heart-icon {
        width: 45px;
        height: 45px;
    }

    .node-android {
        left: 0;
    }

    .node-ios {
        right: 0;
    }
}
