/* Apps Sayfası Özel CSS */
:root {
    --primary: #6c63ff;
    --secondary: #4a47a3;
    --dark-bg: #121212;
    --card-bg: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Stats Bölümü Stilleri - Özelleştirilmiş ve Sabitlenmiş */
.apps-stats-section {
    padding: 70px 0 40px;
    background: linear-gradient(135deg, rgba(20, 30, 48, 0.95), rgba(36, 59, 85, 0.9));
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(108, 99, 255, 0.2);
    margin-top: 60px; /* Header için daha fazla boşluk */
}

.apps-stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236c63ff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.apps-stats-section .container {
    position: relative;
    z-index: 1;
}

.apps-stats-wrapper {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.apps-stat-card {
    flex: 1;
    min-width: 200px;
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px 20px;
    border: 1px solid rgba(108, 99, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.apps-stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.6s;
}

.apps-stat-card:hover {
    transform: translateY(-10px);
    border-color: rgba(108, 99, 255, 0.4);
    box-shadow: 0 15px 35px rgba(108, 99, 255, 0.2);
}

.apps-stat-card:hover::before {
    opacity: 1;
}

.apps-stat-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.2), rgba(74, 71, 163, 0.2));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 10px 20px -5px rgba(108, 99, 255, 0.3);
}

.apps-stat-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
    animation: spin 7s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.apps-stat-icon i {
    font-size: 32px;
    color: var(--primary);
    text-shadow: 0 0 15px rgba(108, 99, 255, 0.7);
}

.apps-stat-count {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
    background: linear-gradient(to right, #ffffff, #6c63ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.apps-stat-count::after {
    content: attr(data-suffix);
    font-size: 1.5rem;
    font-weight: 400;
    position: absolute;
    right: -15px;
    top: 5px;
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
}

.apps-stat-title {
    font-size: 1.1rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    position: relative;
}

.apps-stat-title::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background: var(--primary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Uygulama sayfası düzen stilleri */
.apps-grid-container {
    padding: 40px 0 80px;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.app-filters {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.2);
    color: var(--text-primary);
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: rgba(108, 99, 255, 0.2);
    border-color: var(--primary);
}

.page-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
}

.back-to-home {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 100;
    text-decoration: none;
}

.back-to-home:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* App card stilleri */
.app-card {
    perspective: 1500px;
    min-height: 450px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.app-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    pointer-events: none;
}

.app-card.flipped .app-card-inner {
    transform: rotateY(180deg);
}

.app-card-front, .app-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    overflow: hidden;
}

.app-card-front {
    justify-content: space-between;
    z-index: 2;
}

.app-card-back {
    transform: rotateY(180deg);
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    z-index: 1;
    background: linear-gradient(145deg, var(--card-bg), #004080);
}

.app-card-back h3 {
    margin-top: 50px;
    margin-bottom: 20px;
    width: 100%;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.3rem;
    color: #80c0ff;
}

.app-card-back ul {
    list-style-type: none;
    padding: 0;
    margin: 15px 0;
    width: 100%;
}

.app-card-back ul li {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

.app-card-back ul li strong {
    margin-right: 8px;
    color: #80c0ff;
}

.app-card-back ul li i {
    margin-right: 10px;
    color: var(--primary);
}

.info-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--primary);
    background-color: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.flip-back {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #fff;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
}

.card-details {
    margin-top: 15px;
    line-height: 1.6;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding-left: 15px;
}

.card-details::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
    opacity: 0.1;
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin: 0 auto 20px;
    background: linear-gradient(145deg, var(--primary), var(--secondary));
}

.app-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.app-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.store-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.store-btn {
    padding: 8px 15px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.google-play {
    background: #414141;
    color: white;
}

.download-btn {
    background: #4caf50;
    color: white;
}

.store-btn i {
    margin-right: 5px;
}

.store-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Animasyonlu sayfa geçişleri */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.apps-grid .app-card {
    opacity: 0;
    transform: translateY(20px);
}

.apps-grid .app-card.animated {
    animation: fadeIn 0.5s ease forwards;
}

/* Gecikme ekleyerek kademeli görünüm */
.apps-grid .app-card:nth-child(1) { animation-delay: 0.1s; }
.apps-grid .app-card:nth-child(2) { animation-delay: 0.2s; }
.apps-grid .app-card:nth-child(3) { animation-delay: 0.3s; }
.apps-grid .app-card:nth-child(4) { animation-delay: 0.4s; }
.apps-grid .app-card:nth-child(5) { animation-delay: 0.5s; }
.apps-grid .app-card:nth-child(6) { animation-delay: 0.6s; }

/* Responsive düzenlemeler */
@media (max-width: 992px) {
    .apps-stats-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .apps-stats-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .apps-stat-card {
        padding: 20px 15px;
        min-height: 180px;
    }
    
    .apps-stat-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .apps-stat-icon i {
        font-size: 24px;
    }
    
    .apps-stat-count {
        font-size: 2.5rem;
    }
    
    .apps-stat-count::after {
        font-size: 1.2rem;
        right: -10px;
    }
    
    .app-card {
        min-height: 400px;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .apps-stats-wrapper {
        grid-template-columns: 1fr;
    }
    
    .apps-stat-card {
        padding: 20px 15px;
    }
    
    .app-card {
        min-height: 380px;
    }
    
    .app-card-front h3,
    .app-card-back h3 {
        font-size: 1.1rem;
    }
    
    .store-btn {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
}
