/* GravityTeknoloji - Interactive Showcase CSS (Siyah & Elektrik Mavisi) */

.showcase {
    position: relative;
    z-index: 2;
    background: var(--bg-secondary);
    padding: clamp(3.5rem, 6vw, 6.5rem) 0;
    overflow: hidden;
}

.showcase__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    margin-bottom: clamp(4rem, 8vw, 6.5rem);
}

.showcase__row:last-child {
    margin-bottom: 0;
}

.showcase__row--right .showcase__text {
    order: 2;
}

.showcase__row--right .showcase__visual {
    order: 1;
}

.showcase__title {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 4vw, 2.85rem);
    font-weight: 800;
    color: #ffffff !important;
    margin: 0 0 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.showcase__description {
    font-size: 1.08rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* 1. Modal Slider Marquee (Responsive) */
.modal-slider {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
}

.modal-slider__track {
    display: flex;
    gap: 1.25rem;
    width: max-content;
    animation: marqueeSlide 22s linear infinite;
}

.modal-slider:hover .modal-slider__track {
    animation-play-state: paused;
}

@keyframes marqueeSlide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.modal-card {
    width: clamp(215px, 65vw, 260px);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.modal-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-tertiary);
}

.modal-card--analytics { border-left: 3px solid #3b82f6; }
.modal-card--terminal { border-left: 3px solid #10b981; }
.modal-card--user { border-left: 3px solid #38bdf8; }
.modal-card--invoice { border-left: 3px solid #2563eb; }
.modal-card--payment { border-left: 3px solid #818cf8; }

.modal-card__header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.modal-card__title {
    margin-left: auto;
    font-weight: 600;
}

.modal-badge {
    display: inline-block;
    margin-top: 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #10b981;
}

.terminal-logs {
    font-family: monospace;
    font-size: 0.7rem;
    color: #10b981;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.5rem;
    border-radius: 6px;
}

.user-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.user-avatar-preview {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-gradient);
    flex-shrink: 0;
}

.invoice-status {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.inv-tag { font-size: 0.8rem; font-weight: 600; color: #38bdf8; }
.inv-time { font-size: 0.7rem; color: var(--text-muted); }

.payment-val {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: #3b82f6;
    margin-bottom: 0.4rem;
}

.bar-chart-preview {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: 60px;
}
.bar {
    flex: 1;
    background: var(--accent-gradient);
    border-radius: 4px;
}
.bar-1 { height: 40%; }
.bar-2 { height: 75%; }
.bar-3 { height: 100%; }

.status-pill {
    font-size: 0.8rem;
    font-weight: 600;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
}

/* 2. Device Simulator (Gerçekçi Donanım Morphing) */
.device-simulator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.device-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 340px;
}

.device-frame {
    position: relative;
    background: #070a12;
    border: 2px solid #3b82f6;
    padding: 0.6rem;
    box-shadow: 0 16px 48px rgba(59, 130, 246, 0.3);
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

/* Yan Tuşlar (Telefon için) */
.side-button {
    position: absolute;
    background: #1e293b;
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.device-frame.mobile ~ .side-button,
.device-wrapper:has(.device-frame.mobile) .side-button {
    opacity: 1;
}

.side-button.volume-up { left: calc(50% - 114px); top: 90px; width: 3px; height: 24px; }
.side-button.volume-down { left: calc(50% - 114px); top: 122px; width: 3px; height: 24px; }
.side-button.power { right: calc(50% - 114px); top: 100px; width: 3px; height: 32px; }

/* 📲 TELEFON MODU */
.device-frame.mobile {
    max-width: 215px;
    height: 320px;
    border-radius: 32px;
}
.device-frame.mobile .device-camera {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 10px;
    background: #000000;
    border-radius: 6px;
    z-index: 20;
}
.device-frame.mobile .home-indicator {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    z-index: 20;
}

/* 📱 TABLET MODU */
.device-frame.tablet {
    max-width: 350px;
    height: 290px;
    border-radius: 18px;
}
.device-frame.tablet .device-camera {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #1e293b;
    border-radius: 50%;
    z-index: 20;
}
.device-frame.tablet .home-indicator {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

/* 💻 LAPTOP MODU */
.device-frame.laptop {
    max-width: 480px;
    height: 270px;
    border-radius: 12px 12px 2px 2px;
}
.device-frame.laptop .device-camera {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background: #38bdf8;
    border-radius: 50%;
}
.laptop-keyboard-deck {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 520px;
    height: 12px;
    background: linear-gradient(to bottom, #1e293b, #0f172a);
    border-radius: 0 0 10px 10px;
    display: none;
    align-items: center;
    justify-content: center;
}
.device-wrapper:has(.device-frame.laptop) .laptop-keyboard-deck {
    display: flex;
}
.laptop-notch {
    width: 60px;
    height: 4px;
    background: #05070c;
    border-radius: 2px;
}

/* 🖥️ MASAÜSTÜ MONİTÖR MODU */
.device-frame.desktop {
    max-width: 530px;
    height: 290px;
    border-radius: 14px;
    border-bottom-width: 14px;
}
.monitor-stand {
    display: none;
    flex-direction: column;
    align-items: center;
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}
.device-wrapper:has(.device-frame.desktop) .monitor-stand {
    display: flex;
}
.monitor-neck {
    width: 45px;
    height: 24px;
    background: linear-gradient(to bottom, #334155, #0f172a);
}
.monitor-foot {
    width: 140px;
    height: 8px;
    background: #1e293b;
    border-radius: 4px;
}

.device-screen {
    width: 100%;
    height: 100%;
    background: #05070c;
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    overflow: hidden;
}

/* Sitemizin Minyatür Canlı Kopyası */
.site-preview {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    height: 100%;
}

.mini-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}
.mini-logo {
    font-family: var(--font-display);
    font-weight: 800;
    color: #3b82f6;
    font-size: 0.75rem;
}
.mini-nav-links {
    display: flex;
    gap: 0.5rem;
    font-size: 0.6rem;
    color: #94a3b8;
}

.mini-hero {
    background: rgba(59, 130, 246, 0.08);
    padding: 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(59, 130, 246, 0.15);
}
.mini-hero h4 {
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: #ffffff;
    margin-bottom: 0.2rem;
}
.mini-hero p {
    font-size: 0.65rem;
    color: #94a3b8;
}
.mini-wave-bars {
    display: flex;
    gap: 0.2rem;
    margin-top: 0.4rem;
}
.wb {
    height: 3px;
    border-radius: 2px;
    background: var(--accent-gradient);
}
.wb-1 { width: 40%; }
.wb-2 { width: 65%; }
.wb-3 { width: 25%; }

.mini-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
}
.mc {
    background: rgba(13, 18, 30, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.15);
    padding: 0.4rem;
    font-size: 0.6rem;
    font-weight: 600;
    color: #38bdf8;
    border-radius: 4px;
    text-align: center;
}

.device-controls {
    display: flex;
    gap: 0.4rem;
    background: var(--bg-card);
    padding: 0.4rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.device-btn {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.device-btn.active, .device-btn:hover {
    background: var(--accent-primary);
    color: #ffffff;
}

/* 3. İnteraktif Veri Grafiği */
.analytics-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-md);
}

.analytics-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.analytics-active-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

.chart-container {
    height: 130px;
    width: 100%;
    margin-bottom: 1.25rem;
    position: relative;
}
.chart-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}
.chart-path-bg {
    fill: url(#chartGrad);
    transition: d 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.chart-path {
    fill: none;
    stroke: #38bdf8;
    stroke-width: 3.5;
    stroke-linecap: round;
    transition: d 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-node {
    cursor: pointer;
    transition: transform 0.3s ease;
}
.chart-node:hover, .chart-node.active {
    transform: scale(1.3);
}
.node-circle {
    fill: #3b82f6;
    stroke: #ffffff;
    stroke-width: 2;
}
.node-pulse {
    fill: none;
    stroke: #38bdf8;
    stroke-width: 2;
    opacity: 0.6;
    animation: nodePulse 2s infinite;
}

@keyframes nodePulse {
    0% { r: 6px; opacity: 0.8; }
    100% { r: 18px; opacity: 0; }
}

.analytics-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.stat-mini__val {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: #3b82f6;
}

.stat-mini__lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* 4. Integration Grid */
.integration-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.int-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.1rem;
    overflow: hidden;
    transition: transform var(--transition-fast);
}

.int-card:hover {
    transform: translateY(-4px);
    border-color: #3b82f6;
}

.int-card__icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.int-card__icon svg {
    width: 24px;
    height: 24px;
}

.int-card__info strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.int-card__info span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.data-stream-dot {
    position: absolute;
    top: 50%;
    right: -10px;
    width: 6px;
    height: 6px;
    background: #38bdf8;
    border-radius: 50%;
    box-shadow: 0 0 10px #38bdf8;
    animation: streamDot 3s linear infinite;
}

@keyframes streamDot {
    0% { right: 100%; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { right: -10px; opacity: 0; }
}

/* 5. Security Card */
.security-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    overflow: hidden;
}

.shield-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shield-matrix-ring {
    position: absolute;
    inset: -6px;
    border: 2px dashed #3b82f6;
    border-radius: 50%;
    animation: spinRing 12s linear infinite;
}

@keyframes spinRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.shield-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 50%;
    z-index: 2;
}

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

.security-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .showcase__row {
        grid-template-columns: 1fr;
    }
    .showcase__row--right .showcase__text {
        order: 1;
    }
    .showcase__row--right .showcase__visual {
        order: 2;
    }
}

@media (max-width: 480px) {
    .integration-grid {
        grid-template-columns: 1fr;
    }
    .device-frame {
        height: 240px;
    }
}
