/* --- Global ve Temel Ayarlar --- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #f0f2f5; /* App Store benzeri gri arka plan */
    color: #1c1e21;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    box-sizing: border-box;
}

/* --- Ana Taşıyıcı --- */
.app-container {
    max-width: 700px;
    margin: 20px auto;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* --- Üst Başlık (İkon, Başlık, Alt Başlık) --- */
.app-header {
    display: flex;
    align-items: center;
    padding: 24px;
    gap: 16px; /* İkon ve metin arası boşluk */
}

.app-icon-image {
    width: 80px;
    height: 80px;
    border-radius: 20px; /* Daha yumuşak köşe */
    border: 1px solid #eee;
    flex-shrink: 0;
}

.app-info {
    display: flex;
    flex-direction: column;
}

.app-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.app-subtitle {
    font-size: 14px;
    color: #606770;
    margin: 4px 0 0 0;
    line-height: 1.4;
}

/* --- İndir Butonu --- */
.action-section {
    padding: 0 24px 24px 24px;
}

.get-button {
    display: block; /* Artık bir 'a' etiketi olduğu için */
    width: 100%;
    text-align: center;
    background-color: #007aff; /* Canlı mavi */
    color: #ffffff;
    padding: 14px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background-color 0.2s ease;
}

.get-button:hover {
    background-color: #0056b3;
}

/* Parlama Efekti */
.button-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(30deg);
    animation: shine 3s infinite ease-out;
}

@keyframes shine {
    0% { transform: translate(-75%, -75%) rotate(30deg); }
    100% { transform: translate(50%, 50%) rotate(30deg); }
}

/* --- İstatistikler (Puan, Yaş, Sıralama) --- */
.stats-section {
    display: flex;
    justify-content: space-around;
    padding: 16px 24px;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f9f9f9;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.star-rating .stars {
    color: #ff9500; /* Yıldız rengi */
    font-size: 14px;
}

.stat-label {
    font-size: 10px;
    color: #606770;
    text-transform: uppercase;
    font-weight: 500;
    margin-top: 4px;
}

.stat-sublabel {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    background-color: #e0e0e0;
}

/* --- Ekran Görüntüleri --- */
.app-screenshots {
    padding: 24px 0 24px 24px;
    overflow-x: auto; /* Yatay kaydırma */
    white-space: nowrap; /* Öğelerin yan yana kalmasını sağlar */
    -webkit-overflow-scrolling: touch; /* Mobilde akıcı kaydırma */
}

.screenshots-container {
    display: flex;
    gap: 12px;
}

.screenshot-item {
    flex-shrink: 0; /* Daralmayı engelle */
}

.screenshot-image img {
    height: 350px; /* Yüksekliği sabitle */
    width: auto;
    border-radius: 12px;
    border: 1px solid #ddd;
}

/* --- Değerlendirmeler --- */
.ratings-section, .reviews-section {
    padding: 24px;
    border-top: 1px solid #e0e0e0;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.overall-rating {
    display: flex;
    align-items: center;
    gap: 24px;
}

.rating-score {
    text-align: center;
    flex-shrink: 0;
}

.score-number {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.score-label {
    font-size: 14px;
    color: #606770;
}

.rating-breakdown {
    flex-grow: 1;
}

.rating-bars {
    width: 100%;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.bar-stars {
    font-size: 12px;
    color: #ff9500;
    flex-basis: 60px; /* Yıldızların hizalı durması için */
    text-align: right;
}

.bar-fill {
    flex-grow: 1;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.bar-progress {
    height: 100%;
    background-color: #ff9500; /* Yıldızlarla aynı renk */
    border-radius: 4px;
}

.rating-count {
    font-size: 12px;
    color: #606770;
    margin-top: 8px;
}

/* --- Yorum Kartları --- */
.review-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.review-card:last-child {
    margin-bottom: 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.review-stars {
    color: #ff9500;
    font-size: 14px;
}

.review-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.review-text {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin: 0;
}

/* --- Mobil Cihazlar İçin Ayarlamalar --- */
@media (max-width: 700px) {
    .app-container {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .app-header, .action-section, .stats-section, .ratings-section, .reviews-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .app-screenshots {
        padding-left: 16px;
    }

    .screenshot-image img {
        height: 300px; /* Mobilde biraz daha küçük */
    }

    .overall-rating {
        flex-direction: column; /* Mobilde alt alta */
        align-items: flex-start;
        gap: 16px;
    }

    .score-number {
        font-size: 40px;
    }
}