/*
 * Eduhol Instagram Otomasyonu
 * Global main.scss değiştirilmez. Eduhol'un 675px orta kolon, .55rem kart,
 * 5px turuncu üst şerit ve turuncu/yeşil buton mantığına izole uyarlanmıştır.
 * Arayüz metinleri 16px altına inmez.
 */

.ig-auto,
.ig-auto * {
    box-sizing: border-box;
}

.ig-auto {
    gap: 0.75rem;
    padding-bottom: 1rem;
    color: #333;
    font-size: 16px;
}

/* ------------------------------ Uyarı ------------------------------ */

.ig-auto-alert {
    display: flex;
    align-items: flex-start;
    width: 100%;
    gap: 0.55rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.55rem;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
}

.ig-auto-alert i {
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1.3;
}

.ig-auto-alert-success {
    color: #13703d;
    border: 1px solid #b7e4c7;
    background-color: #ecf9f1;
}

.ig-auto-alert-error {
    color: #b42318;
    border: 1px solid #fecdca;
    background-color: #fef3f2;
}

/* ------------------------------ Kart ------------------------------ */

.ig-auto-card {
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0.55rem;
    background-color: #fff;
}

.ig-auto-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    gap: 0.7rem;
    padding: 0.75rem;
    border-top: 5px solid #f17565;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.ig-auto-card-title {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 0.6rem;
}

.ig-auto-card-title > i {
    flex-shrink: 0;
    color: #f17565;
    font-size: 20px;
}

.ig-auto-card-title h1,
.ig-auto-card-title h2 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

.ig-auto-card-title p {
    margin: 0.15rem 0 0;
    color: #777;
    font-size: 16px;
}

.ig-auto-card-body {
    padding: 0.85rem;
}

/* ------------------------------ Logo ------------------------------ */

.ig-auto-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    color: #fff;
    border-radius: 12px;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
    font-size: 22px;
}

.ig-auto-logo-lg {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    font-size: 34px;
}

/* ------------------------------ Hero ------------------------------ */

.ig-auto-hero {
    border-top: 5px solid #f17565;
}

.ig-auto-hero-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem 0.5rem;
    text-align: center;
}

.ig-auto-hero-head h1 {
    margin: 0.25rem 0 0;
    font-size: 24px;
    font-weight: 800;
}

.ig-auto-hero-head p {
    max-width: 520px;
    margin: 0;
    color: #555;
    font-size: 16px;
    line-height: 1.5;
}

.ig-auto-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin: 0.75rem 1rem 0;
    padding: 0.85rem;
    border-radius: 0.55rem;
    background-color: #fff0ed;
    text-align: center;
}

.ig-auto-price strong {
    color: #e04e3c;
    font-size: 26px;
    font-weight: 800;
    white-space: nowrap;
}

.ig-auto-price span {
    color: #6b4a45;
    font-size: 16px;
    line-height: 1.4;
}

.ig-auto-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem;
}

.ig-auto-subscribe-form {
    width: 100%;
    max-width: 380px;
    margin: 0;
}

.ig-auto-cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 0.6rem;
}

.ig-auto-cta-row .ig-auto-btn {
    flex: 1 1 160px;
    max-width: 240px;
}

.ig-auto-guest-text {
    margin: 0;
    color: #555;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}

.ig-auto-secure {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    color: #666;
    font-size: 16px;
    text-align: center;
}

.ig-auto-secure i {
    color: #1b9853;
}

/* ------------------------------ Butonlar ------------------------------ */

.ig-auto-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    gap: 0.45rem;
    padding: 0 1rem;
    border-radius: 0.3rem;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ig-auto-btn i {
    font-size: 18px;
}

.ig-auto-btn-primary {
    color: #fff !important;
    border: 1px solid #e36555;
    background-color: #f17565;
}

.ig-auto-btn-primary:hover,
.ig-auto-btn-primary:focus-visible {
    background-color: #e36555;
}

.ig-auto-btn-outline {
    color: #e04e3c !important;
    border: 1px solid #f3b4ab;
    background-color: #fff;
}

.ig-auto-btn-outline:hover,
.ig-auto-btn-outline:focus-visible {
    background-color: #fff0ed;
}

.ig-auto-btn-block {
    width: 100%;
}

.ig-auto-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ------------------------------ Durum ------------------------------ */

.ig-auto-badge {
    flex-shrink: 0;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

.ig-auto-badge-active {
    color: #13703d;
    background-color: #ecf9f1;
}

.ig-auto-badge-canceled {
    color: #b54708;
    background-color: #fffaeb;
}

.ig-auto-badge-manual {
    color: #175cd3;
    background-color: #eff8ff;
}

.ig-auto-status-text {
    margin: 0 0 0.85rem;
    color: #444;
    font-size: 16px;
    line-height: 1.5;
}

.ig-auto-cancel-form {
    margin: 0;
}

.ig-auto-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1.25rem 0.5rem;
    color: #777;
    font-size: 16px;
    text-align: center;
}

.ig-auto-empty i {
    color: #f17565;
    font-size: 28px;
}

/* ------------------------------ Adımlar ------------------------------ */

.ig-auto-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
    padding: 0.85rem;
    list-style: none;
}

.ig-auto-steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: #444;
    font-size: 16px;
    line-height: 1.5;
}

.ig-auto-step-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    color: #fff;
    border-radius: 50%;
    background-color: #f17565;
    font-size: 16px;
    font-weight: 800;
}

/* ------------------------------ Özellikler ------------------------------ */

.ig-auto-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 0.85rem;
}

.ig-auto-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.55rem;
    background-color: #fcfcfc;
}

.ig-auto-feature > i {
    flex-shrink: 0;
    color: #f17565;
    font-size: 22px;
}

.ig-auto-feature strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 16px;
}

.ig-auto-feature span {
    display: block;
    color: #555;
    font-size: 16px;
    line-height: 1.45;
}

/* ------------------------------ Sınırlar ------------------------------ */

.ig-auto-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ig-auto-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 16px;
    line-height: 1.45;
}

.ig-auto-checklist i {
    flex-shrink: 0;
    color: #1b9853;
    font-size: 18px;
}

.ig-auto-note {
    margin: 0.75rem 0 0;
    padding: 0.6rem 0.75rem;
    color: #555;
    border-radius: 0.5rem;
    background-color: #f5f5f5;
    font-size: 16px;
    line-height: 1.45;
}

.ig-auto-subtitle {
    margin: 1rem 0 0.6rem;
    font-size: 17px;
    font-weight: 700;
}

/* ------------------------------ SSS ------------------------------ */

.ig-auto-faq .accordion-item {
    border-right: 0;
    border-left: 0;
    border-radius: 0 !important;
}

.ig-auto-faq .accordion-item:first-child {
    border-top: 0;
}

.ig-auto-faq .accordion-item:last-child {
    border-bottom: 0;
}

.ig-auto-faq .accordion-button {
    padding: 0.85rem;
    color: #333;
    font-size: 16px;
    font-weight: 700;
    box-shadow: none !important;
}

.ig-auto-faq .accordion-button:not(.collapsed) {
    color: #e04e3c;
    background-color: #fff6f4;
}

.ig-auto-faq .accordion-body {
    padding: 0.85rem;
    color: #555;
    font-size: 16px;
    line-height: 1.55;
}

/* ------------------------------ Hesap ------------------------------ */

.ig-auto-account-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.85rem;
}

.ig-auto-account-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ig-auto-account-info strong {
    overflow: hidden;
    font-size: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ig-auto-account-info span {
    color: #777;
    font-size: 16px;
}

.ig-auto-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.ig-auto-actions > .ig-auto-btn,
.ig-auto-actions > form {
    flex: 1 1 180px;
}

.ig-auto-actions > form .ig-auto-btn {
    width: 100%;
}

.ig-auto-btn-green {
    color: #fff !important;
    border: 1px solid #168247;
    background-color: #1b9853;
}

.ig-auto-btn-green:hover,
.ig-auto-btn-green:focus-visible {
    background-color: #168247;
}

.ig-auto-btn.is-loading i {
    animation: ig-auto-spin 0.9s linear infinite;
}

@keyframes ig-auto-spin {
    to {
        transform: rotate(360deg);
    }
}

.ig-auto-inline-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-top: 0.85rem;
    padding: 0.7rem 0.75rem;
    color: #13703d;
    border: 1px solid #b7e4c7;
    border-radius: 0.5rem;
    background-color: #ecf9f1;
    font-size: 16px;
    font-weight: 600;
}

.ig-auto-warning {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    padding: 0.7rem 0.75rem;
    color: #93370d;
    border: 1px solid #fedf89;
    border-radius: 0.5rem;
    background-color: #fffaeb;
    font-size: 16px;
    line-height: 1.45;
}

.ig-auto-warning i {
    flex-shrink: 0;
    font-size: 18px;
}

/* ------------------------------ Gönderiler ------------------------------ */

.ig-auto-media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.ig-auto-media {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.55rem;
    background-color: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ig-auto-media:hover,
.ig-auto-media:focus-visible {
    border-color: #f3b4ab;
    box-shadow: 0 4px 14px rgba(241, 117, 101, 0.18);
}

.ig-auto-media-thumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    color: #c9c9c9;
    background-color: #f2f2f2;
    font-size: 30px;
}

.ig-auto-media-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ig-auto-media-type {
    position: absolute;
    top: 6px;
    right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #fff;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.45);
    font-size: 16px;
}

.ig-auto-media-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.5rem;
}

.ig-auto-media-date {
    color: #777;
    font-size: 16px;
}

.ig-auto-rule-badge {
    display: inline-flex;
    align-self: flex-start;
    max-width: 100%;
    overflow: hidden;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ig-auto-rule-badge.is-active {
    color: #13703d;
    background-color: #ecf9f1;
}

.ig-auto-rule-badge.is-inactive {
    color: #b54708;
    background-color: #fffaeb;
}

.ig-auto-rule-badge.is-none {
    color: #666;
    background-color: #f2f2f2;
}

/* ------------------------------ Kural editörü ------------------------------ */

.ig-rule,
.ig-rule * {
    box-sizing: border-box;
}

.ig-rule {
    color: #333;
    font-size: 16px;
    text-align: left;
}

.ig-rule-media {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
    padding: 0.6rem;
    border-radius: 0.5rem;
    background-color: #f7f7f7;
}

.ig-rule-media-thumb {
    position: relative;
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    overflow: hidden;
    border-radius: 0.4rem;
    background-color: #e9e9e9;
}

.ig-rule-media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ig-rule-media p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #555;
    font-size: 16px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ig-rule-field {
    
}

.ig-rule-field > label,
.ig-rule-label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 16px;
    font-weight: 700;
}

.ig-rule-help {
    margin: 0 0 0.4rem;
    color: #666;
    font-size: 16px;
    line-height: 1.45;
}

.ig-rule input[type="text"],
.ig-rule input[type="search"],
.ig-rule textarea {
    display: block;
    width: 100%;
    padding: 0.6rem 0.7rem;
    color: #333;
    border: 1px solid #d0d5dd;
    border-radius: 0.4rem;
    background-color: #fff;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.45;
}

.ig-rule textarea {
    min-height: 24px;
    resize: vertical;
}

.ig-rule input:focus,
.ig-rule textarea:focus {
    border-color: #f17565;
    outline: none;
    box-shadow: 0 0 0 3px rgba(241, 117, 101, 0.18);
}

.ig-rule .has-error input,
.ig-rule .has-error textarea {
    border-color: #eb5656;
}

.ig-rule-reply + .ig-rule-reply {
    margin-top: 0.6rem;
}

.ig-rule-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.25rem;
    font-size: 16px;
}

.ig-rule-warn {
    color: #b42318;
    line-height: 1.4;
}

.ig-rule-count {
    flex-shrink: 0;
    margin-left: auto;
    color: #888;
    font-variant-numeric: tabular-nums;
}

.ig-rule-count.is-over {
    color: #b42318;
    font-weight: 700;
}

.ig-rule-target {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.65rem 0.7rem;
    border: 1px dashed #d0d5dd;
    border-radius: 0.5rem;
    background-color: #fcfcfc;
}

.ig-rule-target-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ig-rule-target-info strong {
    overflow: hidden;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ig-rule-target-info span {
    overflow: hidden;
    color: #777;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ig-rule-target .ig-auto-btn {
    flex-shrink: 0;
    min-height: 40px;
}

.ig-rule-switch {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.ig-rule-switch input {
    width: 22px;
    height: 22px;
    accent-color: #1b9853;
}

.ig-rule-footer {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.1rem;
}

.ig-rule-footer .ig-auto-btn {
    flex: 1 1 0;
}

.ig-rule-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid #e3e3e3;
    border-radius: 0.6rem;
}

.ig-rule-status.is-active {
    border-color: #b7e4c7;
    background-color: #ecf9f1;
}

.ig-rule-status.is-inactive {
    border-color: #fedf89;
    background-color: #fffaeb;
}

.ig-rule-status-text {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 16px;
    font-weight: 700;
}

.ig-rule-status.is-active .ig-rule-status-text {
    color: #13703d;
}

.ig-rule-status.is-inactive .ig-rule-status-text {
    color: #b54708;
}

.ig-rule-status .ig-auto-btn {
    flex: 0 0 auto;
}

@media (max-width: 575.98px) {
    .ig-rule-status .ig-auto-btn {
        width: 100%;
    }
}

.ig-rule-error {
    margin-bottom: 0.8rem;
    padding: 0.6rem 0.7rem;
    color: #b42318;
    border: 1px solid #fecdca;
    border-radius: 0.5rem;
    background-color: #fef3f2;
    font-size: 16px;
    font-weight: 600;
}

/* ------------------------------ İçerik seçici ------------------------------ */

.ig-picker-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
}

.ig-picker-head strong {
    font-size: 17px;
}

.ig-picker-back {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.6rem;
    color: #e04e3c;
    border: 1px solid #f3b4ab;
    border-radius: 0.3rem;
    background: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.ig-picker-tabs {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.7rem;
    padding-bottom: 0.2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ig-picker-tab {
    flex-shrink: 0;
    padding: 0.4rem 0.75rem;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 999px;
    background-color: #fff;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.ig-picker-tab.is-active {
    color: #fff;
    border-color: #f17565;
    background-color: #f17565;
}

.ig-picker-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.7rem;
}

.ig-picker-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.5rem;
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    background-color: #fff;
    text-align: left;
    cursor: pointer;
}

.ig-picker-item:hover,
.ig-picker-item:focus-visible {
    border-color: #f17565;
}

.ig-picker-item-thumb {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 0.4rem;
    background-color: #f0f0f0;
}

.ig-picker-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ig-picker-item-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ig-picker-item-info strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ig-picker-item-info span {
    color: #777;
    font-size: 16px;
}

.ig-picker-badge {
    margin-left: 0.35rem;
    color: #b54708;
    font-weight: 700;
}

.ig-picker-status {
    padding: 1rem 0.5rem;
    color: #777;
    font-size: 16px;
    text-align: center;
}

.ig-picker-more {
    width: 100%;
    margin-top: 0.6rem;
}

/* ------------------------------ Mobil ------------------------------ */

@media (max-width: 767px) {
    .ig-auto {
        width: 100%;
        gap: 0.6rem;
    }

    .ig-auto-card,
    .ig-auto-alert {
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .ig-auto-card-header {
        flex-wrap: wrap;
    }

    .ig-auto-features {
        grid-template-columns: 1fr;
    }

    .ig-auto-hero-head h1 {
        font-size: 22px;
    }

    .ig-auto-price strong {
        font-size: 24px;
    }

    .ig-auto-cta-row .ig-auto-btn {
        max-width: none;
    }

    .ig-auto-media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ig-auto-inline-note .ig-auto-btn {
        width: 100%;
    }

    .ig-rule-target {
        flex-direction: column;
        align-items: stretch;
    }
}
