/* Reset ve temel stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #000417 0%, #660000 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    direction: rtl;
    text-align: right;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Stilleri */
.header {
    text-align: center;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header-content h1 i {
    margin-right: 15px;
    color: #ffd700;
}

.header-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

/* Promo Image */
.promo-container {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.promo-image {
    width: 300px;
    height: auto; /* Yüksekliği otomatik yap ki resim uzamasın */
    max-height: 400px; /* Çok devasa olmasını engelle */
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    object-fit: contain; /* EN ÖNEMLİ KISIM: Resmi kesme, sığdır */
    background: transparent; /* Arkadaki beyazlığı kaldırdık, şık dursun */
}

.promo-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

/* Arama Kutusu */
.search-container {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1.1rem;
}

.search-box input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 3px solid #C5A021;
    border-radius: 50px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    outline: none;
}

.search-box input:focus {
    background: white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Uygulamalar Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.app-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid #C5A021;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: right 0.5s;
}

.app-card:hover::before {
    right: 100%;
}

.app-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.app-image {
    width: 100%;
    height: 85%;
    border-radius: 20px 20px 0 0;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.app-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 0 0 20px 20px;
    backdrop-filter: blur(10px);
}

.app-card:hover .app-image {
    transform: scale(1.1);
}


/* Loading Spinner */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: white;
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.7;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Modal Stilleri */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
}

.full-size-image {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px 30px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 30px;
}

.app-info {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.app-info img {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.app-details h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.app-details p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.download-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.download-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-btn:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.cancel-btn {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e9ecef;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-top: auto;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .search-container {
        margin-bottom: 20px;
    }
    
    .search-box input {
        padding: 12px 45px 12px 15px;
        font-size: 16px; /* iOS zoom önleme */
    }
    
    .promo-container {
        margin-bottom: 20px;
        justify-content: center;
    }
    
    .promo-image {
        width: 400px;
        height: 250px;
        aspect-ratio: auto;
        border-radius: 15px;
    }
    
    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .app-card {
        padding: 0;
    }
    
    .app-image {
        width: 100%;
        height: 85%;
    }
    
    .app-name {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .app-info {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .download-actions {
        flex-direction: column;
    }
    
    .download-btn,
    .cancel-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 8px;
    }
    
    .promo-container {
        justify-content: center;
    }
    
    /* Mobil için güncellenen kısım */
    .promo-image {
        width: 200px;
        height: auto;
        aspect-ratio: auto;
        border-radius: 12px;
    }
    
    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .app-card {
        padding: 0;
    }
    
    .app-image {
        width: 100%;
        height: 85%;
    }
    
    .app-name {
        font-size: 0.75rem;
        padding: 5px 8px;
    }
}

/* Animasyonlar */
.app-card {
    animation: fadeInUp 0.6s ease forwards;
}

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

/* Staggered animation for cards */
.app-card:nth-child(1) { animation-delay: 0.1s; }
.app-card:nth-child(2) { animation-delay: 0.2s; }
.app-card:nth-child(3) { animation-delay: 0.3s; }
.app-card:nth-child(4) { animation-delay: 0.4s; }
.app-card:nth-child(5) { animation-delay: 0.5s; }
.app-card:nth-child(6) { animation-delay: 0.6s; }
.app-card:nth-child(7) { animation-delay: 0.7s; }
.app-card:nth-child(8) { animation-delay: 0.8s; }
.app-card:nth-child(9) { animation-delay: 0.9s; }
.app-card:nth-child(10) { animation-delay: 1.0s; }
/* =========================================
   YENİ EKLENEN ÖZELLİKLER (Lord Studio CEO)
   ========================================= */



/* 2. İletişim Bölümü (Resimdeki Tasarım) */
.contact-section-wrapper {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 2px solid #C5A021;
}

.contact-header-title {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.contact-buttons-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    width: 100%;
    max-width: 300px;
    transition: transform 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-3px);
}

/* Arama Butonu Stili (Sol - Koyu Gri/Mavi) */
.call-btn {
    background-color: #1e2532; /* Resimdeki koyu gri tonu */
    color: white;
    border: 1px solid #2a3445;
}

.call-btn .icon-box i {
    color: #ff4757; /* Kırmızı telefon ikonu */
    font-size: 1.5rem;
    transform: rotate(90deg); /* Telefonu yatay çevir */
}

/* WhatsApp Butonu Stili (Sağ - Yeşil) */
.whatsapp-btn {
    background-color: #10b957; /* WhatsApp yeşili */
    color: white;
}

.whatsapp-btn .icon-box i {
    color: white;
    font-size: 1.8rem;
}

.text-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Yazıları sola yasla (RTL olduğu için sağa düşecek) */
    margin-right: 15px; /* İkon ile yazı arası boşluk */
}

.action-text {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 2px;
}

.phone-number {
    font-size: 1.1rem;
    font-weight: 700;
    direction: ltr; /* Numaranın düzgün görünmesi için */
}

/* Mobil Uyumluluk */
@media (max-width: 600px) {
    .contact-buttons-container {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-btn {
        width: 100%;
    }
}
