/**
 * DJI Servis - Drone Serileri Template CSS
 * Tüm drone serileri (Mini, Mavic, Air, Phantom) için ortak stil dosyası
 * 
 * @package DJIServis
 * @version 2.0
 */

/* ============================================
   CSS DEĞİŞKENLERİ ve RENKLER
   ============================================ */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --dark-bg: #0a0e27;
    --dark-card: #141b35;
    --accent-blue: #4c6ef5;
    --accent-purple: #7950f2;
    --text-light: #e1e4f0;
    --text-muted: #9ca3af;
    --border-radius-xl: 32px;
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 30px 70px rgba(0, 0, 0, 0.4);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   GENEL RESET ve BASE STİLLER
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body.drone-series-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-light);
    line-height: 1.7;
    background: var(--dark-bg);
    overflow-x: hidden;
}

/* ============================================
   HERO SECTION - MODERN DARK THEME
   ============================================ */
.drone-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3e 100%);
    overflow: hidden;
    padding: 120px 20px 80px;
}

/* Animated background particles */
.drone-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: particleMove 60s linear infinite;
    z-index: 1;
}

@keyframes particleMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Gradient overlay */
.drone-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(102, 126, 234, 0.15), transparent 50%),
                radial-gradient(ellipse at bottom left, rgba(121, 80, 242, 0.15), transparent 50%);
    z-index: 1;
}

.drone-hero-content {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.drone-hero-text {
    animation: slideInLeft 1s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 50px;
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    animation: fadeIn 1s ease-out 0.2s both;
}

.drone-hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #e1e4f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInLeft 1s ease-out 0.3s both;
}

.drone-hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 36px;
    animation: slideInLeft 1s ease-out 0.4s both;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 36px;
    animation: slideInLeft 1s ease-out 0.5s both;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.hero-stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: slideInLeft 1s ease-out 0.6s both;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.drone-hero-image {
    position: relative;
    animation: slideInRight 1s ease-out 0.4s both;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition-smooth);
}

.hero-image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Floating elements */
.hero-float-element {
    position: absolute;
    padding: 16px 24px;
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
}

.hero-float-1 {
    top: 10%;
    right: -5%;
    animation-delay: 0s;
}

.hero-float-2 {
    bottom: 15%;
    left: -5%;
    animation-delay: 1.5s;
}

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

@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);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   SECTION LAYOUTS
   ============================================ */
.drone-section {
    padding: 120px 20px;
    position: relative;
}

.drone-section.light-bg {
    background: linear-gradient(180deg, #0a0e27 0%, #141b35 100%);
}

.drone-section.dark-bg {
    background: var(--dark-bg);
}

.drone-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease-out;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 50px;
    color: #667eea;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #9ca3af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   MODEL CARDS - EVOLUTION TIMELINE
   ============================================ */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 60px;
    justify-items: center;
    max-width: 100%;
}

/* 4 karttan az olduğunda ortalı görünsün */
@supports (grid-template-columns: repeat(auto-fit, minmax(280px, 1fr))) {
    .models-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, min(calc((100% - 64px) / 3), 380px)));
    }
}

.model-card {
    width: 100%;
    max-width: 380px;
}

.model-card {
    position: relative;
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-lg);
    padding: 36px 28px;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.model-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.model-card:hover {
    transform: translateY(-10px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: var(--shadow-lg);
}

.model-card:hover::before {
    transform: scaleX(1);
}

.model-year {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(102, 126, 234, 0.15);
    border-radius: 50px;
    color: #667eea;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.model-name {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-light);
}

.model-tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.model-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    margin-bottom: 20px;
}

.model-specs {
    list-style: none;
    padding: 0;
}

.model-specs li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.model-specs li:last-child {
    border-bottom: none;
}

.model-specs i {
    color: #667eea;
    font-size: 1.1rem;
}

/* ============================================
   GARANTILI ONARIM BLOĞU
   ============================================ */
.warranty-block {
    background: linear-gradient(135deg, var(--dark-card) 0%, #1a1f3e 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: var(--border-radius-xl);
    padding: 60px 40px;
    margin: 80px 0;
    position: relative;
    overflow: hidden;
}

.warranty-block::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1), transparent 70%);
}

.warranty-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.warranty-text h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.warranty-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.warranty-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.warranty-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.warranty-feature i {
    color: #667eea;
    font-size: 1.5rem;
    margin-top: 4px;
}

.warranty-feature-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 6px;
}

.warranty-feature-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.warranty-image {
    position: relative;
}

.warranty-image img {
    width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   DRONE SPECS TABLE - YENİ CUSTOM TABLE
   ============================================ */
.drone-table-container {
    overflow-x: auto;
    margin: 60px 0;
    border-radius: var(--border-radius-lg);
    background: var(--dark-card);
    padding: 20px;
}

.drone-specs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent !important;
}

/* TABLO BAŞLIĞI - KOYU ARKAPLAN */
.drone-specs-table thead {
    background: #0a0e27 !important;
}

.drone-specs-table thead tr {
    background: #0a0e27 !important;
}

.drone-specs-table thead th {
    background: #0a0e27 !important;
    background-color: #0a0e27 !important;
    color: #ffffff !important;
    padding: 20px 16px !important;
    text-align: left !important;
    font-weight: 700 !important;
    border-bottom: 2px solid rgba(102, 126, 234, 0.5) !important;
    box-shadow: none !important;
    border: none !important;
}

/* TBODY SATIR VE HÜCRELERİ */
.drone-specs-table tbody tr {
    background: var(--dark-card) !important;
}

.drone-specs-table tbody td {
    padding: 16px !important;
    color: var(--text-muted) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    background: var(--dark-card) !important;
    box-shadow: none !important;
}

.drone-specs-table tbody td:first-child {
    font-weight: 600 !important;
    color: var(--text-light) !important;
}

.drone-specs-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02) !important;
}

.drone-specs-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02) !important;
}

.drone-specs-table strong {
    color: #667eea !important;
    font-weight: 700 !important;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-md);
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: rgba(102, 126, 234, 0.3);
}

.faq-question {
    width: 100%;
    padding: 24px 28px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition-smooth);
}

.faq-question:hover {
    color: #667eea;
}

.faq-question i {
    color: #667eea;
    font-size: 1.3rem;
}

.faq-answer {
    padding: 0 28px 24px 68px;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
    animation: fadeInDown 0.3s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--dark-card) 0%, #1a1f3e 100%);
    border-radius: var(--border-radius-xl);
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(102, 126, 234, 0.2), transparent 60%),
                radial-gradient(circle at bottom left, rgba(121, 80, 242, 0.2), transparent 60%);
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-section h3 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .drone-hero-content {
        gap: 60px;
    }
}

@media (max-width: 992px) {
    .drone-hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .drone-hero-text {
        order: 2;
    }
    
    .drone-hero-image {
        order: 1;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-cta-buttons {
        justify-content: center;
    }
    
    .hero-image-wrapper {
        transform: none;
    }
    
    .warranty-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .warranty-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .drone-hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }
    
    .drone-hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .drone-section {
        padding: 80px 20px;
    }
    
    .models-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .warranty-block {
        padding: 40px 24px;
    }
    
    .drone-table-container {
        padding: 10px;
    }
    
    .drone-specs-table th,
    .drone-specs-table td {
        padding: 12px 8px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .drone-hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-float-element {
        display: none;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-new {
    background: rgba(245, 87, 108, 0.2);
    color: #f5576c;
    border: 1px solid rgba(245, 87, 108, 0.3);
}

.badge-pro {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.badge-premium {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.7);
}

/* ============================================
   ENHANCED MOBILE OPTIMIZATION
   ============================================ */

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575px) {
    .drone-hero {
        min-height: auto;
        padding: 80px 0 40px;
    }
    
    .drone-hero-content {
        flex-direction: column;
    }
    
    .drone-hero-text h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .drone-hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-stats {
        gap: 12px;
    }
    
    .hero-stat {
        padding: 12px 16px;
    }
    
    .hero-stat-value {
        font-size: 1.5rem;
    }
    
    .hero-cta-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-cta-buttons .btn-primary,
    .hero-cta-buttons .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .models-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .model-card {
        padding: 20px;
    }
    
    .drone-table-container {
        margin: 30px -20px;
        border-radius: 0;
    }
    
    .drone-specs-table th,
    .drone-specs-table td {
        padding: 12px 8px;
        font-size: 0.85rem;
    }
    
    .warranty-block {
        padding: 30px 20px;
    }
    
    .warranty-content {
        flex-direction: column;
    }
    
    .warranty-features {
        grid-template-columns: 1fr;
    }
    
    .faq-question {
        font-size: 0.95rem;
        padding: 16px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767px) {
    .models-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .drone-specs-table th,
    .drone-specs-table td {
        padding: 14px 10px;
        font-size: 0.9rem;
    }
}

/* Tablets and small desktops */
@media (max-width: 991px) {
    .drone-container {
        padding: 0 20px;
    }
    
    .hero-float-element {
        display: none;
    }
    
    .warranty-image {
        margin-top: 30px;
    }
}

/* Landscape orientation optimization */
@media (orientation: landscape) and (max-height: 600px) {
    .drone-hero {
        min-height: auto;
        padding: 60px 0 40px;
    }
    
    .hero-stats {
        margin: 20px 0;
    }
}
