/* ===========================
   Apps sayfası – Beta formu
   =========================== */

/* Liste tarafı: meta + buton hizalama
   (styles.css içindeki .list-item yapısını genişletiyoruz)
*/

.list-item {
    align-items: center;
}

/* Sağ tarafta meta + butonu dikey gruplayalım */
.item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    font-size: 12px;
}

/* Küçük başlık (beta formun h2'si için) */
.page-title-sm {
    font-family: var(--font-sans);
    font-size: 20px;
    margin: 4px 0 10px;
}

/* ===========================
   Beta bölümünün genel yerleşimi
   =========================== */

.beta-section {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.beta-section .section-header {
    margin-bottom: 6px;
}

/* Form kartı */
.beta-form {
    margin-top: 10px;
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    padding: 14px 14px 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    max-width: 520px;
}

/* ===========================
   Form elemanları
   =========================== */

.form-group {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.form-group label {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
}

#app-name-display {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
}

/* Text input, select, textarea ortak stil */
.beta-form input[type="text"],
.beta-form input[type="email"],
.beta-form input[type="tel"],
.beta-form select,
.beta-form textarea {
    width: 100%;
    padding: 7px 10px;
    font-size: 13px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: #f9fafb;
    color: var(--text);
    font-family: var(--font-sans);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease,
        background-color 0.15s ease;
}

.beta-form textarea {
    resize: vertical;
    min-height: 70px;
}

/* Focus durumu */
.beta-form input[type="text"]:focus,
.beta-form input[type="email"]:focus,
.beta-form input[type="tel"]:focus,
.beta-form select:focus,
.beta-form textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
    background: #ffffff;
}

/* Consent checkbox satırı */
.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
}

.consent-label input[type="checkbox"] {
    margin-top: 2px;
}

/* Submit buton alanı */
.beta-form .btn.primary {
    margin-top: 4px;
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 640px) {
    .list-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .item-actions {
        width: 100%;
        align-items: flex-start;
        margin-top: 4px;
    }

    .beta-form {
        max-width: 100%;
        padding: 12px 12px 14px;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    }

    .page-title-sm {
        font-size: 18px;
    }
}

/* */

.app-main {
    display: grid;
    grid-template-columns: 150px 1fr;
    /* ikon + metin */
    column-gap: 16px;
    row-gap: 8px;
    align-items: flex-start;
}

/* 1. satır */
.app-icon {
    grid-column: 1;
    grid-row: 1;
}

.app-icon img {
    width: 128px;
    height: 128px;
    object-fit: contain;
    display: block;
}

/* Başlık + kısa açıklama */
.app-body {
    grid-column: 2;
    grid-row: 1;
}

/* 2. satır: bullet'lar iki sütunu birden kapsar */
.app-capabilities {
    grid-column: 1 / span 2;
    /* 1. ve 2. sütunu kapla */
    grid-row: 2;
    margin: 0;
    padding-left: 24px;
    list-style: disc;
    font-size: 0.9rem;
}

/* Mobilde tek sütun istersen */
@media (max-width: 768px) {
    .app-main {
        grid-template-columns: 1fr;
        row-gap: 12px;
    }

    /* Desktop'taki sabit grid konumlarını iptal et */
    .app-icon,
    .app-body,
    .app-capabilities {
        grid-column: auto;
        grid-row: auto;
    }

    /* İstersen ikon boyutunu da küçült */
    .app-icon img {
        width: 96px;
        height: 96px;
    }
}



.capability-title {
    display: inline-block;
    position: relative;
    font-size: var(--font-size-item-title);
    font-weight: 600;
    color: var(--accent);
    line-height: 1.4;
    /* İstersen biraz harf aralığı da verebiliriz */
    letter-spacing: 0.01em;
    background: var(--capability-highlight);
}

/* Sarı fosforlu kalem efekti */
.capability-title::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0.15em;
    /* yazının biraz altına otursun */
    width: 100%;
    height: 0.55em;
    background: var(--capability-highlight);
    z-index: -1;
    border-radius: 4px;
    opacity: 0.9;
}

.capability-summary {
    font-size: var(--font-size-item-text);
}

.capability-body {
    font-size: var(--font-size-item-text);
}


/* stores.php kart layout */
.store-item .store-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.store-top {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.store-appicon img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: block;
}

.store-info {
    flex: 1;
    min-width: 0;
}

.store-title-row {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.store-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.store-badge {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    opacity: 0.85;
    white-space: nowrap;
}

.store-links-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.store-link img {
    width: 32px;
    height: 32px;
    display: block;
}

/* stores.php layout v2 */
.store-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.store-top {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.store-appicon img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: block;
}

.store-info {
    flex: 1;
    min-width: 0;
}

.store-links-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.store-row {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.store-row-icon {
    /* width: 128px;
    height: 28px; */
    display: block;
    flex: 0 0 auto;
}

.store-row-text {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.3;
}

.store-item {
    scroll-margin-top: 90px;
    /* header yüksekliğine göre 70-110 arası ayarla */
}

.flash {
    outline: 2px solid rgba(0, 0, 0, 0.15);
    border-radius: 16px;
}

/* Store share */
.store-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.store-share {
    position: relative;
    flex: 0 0 auto;
}

.store-share-btn {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: transparent;
    cursor: pointer;
}

.store-share-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    display: flex;
    gap: 8px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
    z-index: 20;
    min-width: 320px;
}

.store-share-input {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.store-share-copy {
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: transparent;
    cursor: pointer;
}

/* share icon button */
.share-icon-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: transparent;
    cursor: pointer;
    flex: 0 0 auto;
}

.share-icon-btn svg {
    display: block;
    opacity: 0.85;
}

.share-icon-btn:hover svg {
    opacity: 1;
}

/* dialog */
.share-dialog {
    border: 0;
    padding: 0;
    border-radius: 16px;
    max-width: 520px;
    width: calc(100% - 24px);
}

.share-dialog::backdrop {
    background: rgba(0, 0, 0, 0.35);
}

.share-dialog-card {
    padding: 16px;
}

.share-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.share-dialog-title {
    font-size: 16px;
    font-weight: 600;
}

.share-dialog-close {
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: transparent;
    border-radius: 10px;
    width: 34px;
    height: 34px;
    cursor: pointer;
}

.share-url-input {
    width: 100%;
    font-size: 13px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.share-dialog-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 12px;
}

.share-copy-btn,
.share-cancel-btn {
    font-size: 13px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: transparent;
    cursor: pointer;
}