/* ================================================================
   AdaArabam — Component Styles
   ================================================================ */

/* ── BUTONLAR ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    transition: all var(--duration) var(--ease);
    white-space: nowrap;
    cursor: pointer;
    line-height: 1.4;
    border: 2px solid transparent;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
    background: var(--accent-red);
    color: #fff;
    border-color: var(--accent-red);
}
.btn-primary:hover {
    background: var(--red-hover);
    border-color: var(--red-hover);
    box-shadow: var(--shadow-red);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border);
}
.btn-secondary:hover {
    border-color: var(--text-primary);
    background: var(--primary-dark);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.35);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

.btn-gold {
    background: linear-gradient(135deg, #D4AF37, #F5D062);
    color: var(--primary-dark);
    border-color: var(--gold);
    font-weight: 700;
}
.btn-gold:hover {
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 6px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 36px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ── KARTLAR ── */
.card {
    background: var(--card-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--duration) var(--ease);
}
.card:hover {
    box-shadow: var(--shadow-card);
}

.card-body {
    padding: var(--space-lg);
}

/* ── BADGE ── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}
.badge svg { width: 12px; height: 12px; }

.badge-success   { background: var(--success-light); color: var(--success); }
.badge-warning   { background: var(--warning-light); color: var(--warning); }
.badge-danger    { background: var(--danger-light);  color: var(--danger); }
.badge-info      { background: var(--info-light);    color: var(--info); }
.badge-dark      { background: var(--primary-dark);  color: #fff; }

.badge-gold {
    background: linear-gradient(135deg, #D4AF37, #F5D062);
    color: var(--primary-dark);
}
.badge-vip {
    background: var(--primary-dark);
    color: var(--gold);
    border: 1px solid var(--gold);
}
.badge-premium {
    background: var(--accent-red);
    color: #fff;
}
.badge-standard {
    background: var(--border-light);
    color: var(--text-secondary);
}

/* ── FORM ELEMENTLERİ ── */
.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-family: var(--font-display);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--card-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--duration) var(--ease);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
}

.form-input::placeholder { color: var(--text-muted); }
.form-select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10L6 8z' fill='%23999'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-textarea { min-height: 120px; resize: vertical; }

/* ── ALERT ── */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    margin-bottom: var(--space-md);
    animation: slideDown 0.3s var(--ease);
}
.alert svg { flex-shrink: 0; }
.alert-close {
    margin-left: auto;
    font-size: 18px;
    opacity: 0.5;
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
}
.alert-close:hover { opacity: 1; }
.alert-success { background: var(--success-light); color: var(--success); }
.alert-error   { background: var(--danger-light);  color: var(--danger); }
.alert-warning { background: var(--warning-light); color: var(--warning); }
.alert-info    { background: var(--info-light);    color: var(--info); }

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

/* ── İLAN KARTI ── */
.listing-card {
    background: var(--card-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--duration) var(--ease);
    position: relative;
}
.listing-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.listing-card__image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--border-light);
}
.listing-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease);
}
.listing-card:hover .listing-card__image img {
    transform: scale(1.05);
}

.listing-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.listing-card__fav {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.92);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    backdrop-filter: blur(4px);
}
.listing-card__fav svg { width: 18px; height: 18px; color: var(--text-muted); }
.listing-card__fav:hover svg,
.listing-card__fav.active svg,
.listing-card__fav.is-active svg { color: var(--accent-red); fill: var(--accent-red); }

.listing-card__price-tag {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--accent-red);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 15px;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
}

.listing-card__body {
    padding: 14px 16px;
}

.listing-card__title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.listing-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.listing-card__meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}
.listing-card__meta .sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}

.listing-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-top: 1px solid var(--border-light);
    font-size: 12px;
    color: var(--text-muted);
}
.listing-card__footer svg { width: 14px; height: 14px; }

/* İlan Kartı Modifikatörleri */
.listing-card--bold .listing-card__title {
    font-weight: 800;
}
.listing-card--highlighted {
    background: var(--red-light);
    border-color: rgba(198, 40, 40, 0.12);
}
.listing-card--topped {
    border-color: var(--accent-red);
    border-width: 2px;
}
.listing-card--topped::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-red);
    z-index: 3;
}
.listing-card--showcase {
    border-color: var(--gold);
}
.listing-card--showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), #F5D062);
    z-index: 3;
}

/* ── İLAN GRID ── */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

/* ── STAT KART ── */
.stat-card {
    text-align: center;
    padding: var(--space-lg);
}
.stat-card__number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-red);
    line-height: 1;
}
.stat-card__label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ── KATEGORİ KARTI ── */
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--card-white);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-md);
    transition: all var(--duration) var(--ease);
    cursor: pointer;
    text-align: center;
}
.category-card:hover {
    border-color: var(--accent-red);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.category-card__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--accent-red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration) var(--ease);
    box-shadow: 0 4px 12px rgba(198,40,40,0.25);
}
.category-card__icon svg { width: 26px; height: 26px; }
.category-card__icon i { font-size: 24px; line-height: 1; }
.category-card:hover .category-card__icon {
    background: var(--primary-dark);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}
.category-card__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
}
.category-card__count {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: -6px;
}

/* ── PAKETLER GRİDİ ── */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    align-items: stretch;
}
@media (max-width: 992px) {
    .packages-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .packages-grid { grid-template-columns: 1fr; }
}

/* ── PAKET KARTI ── */
.package-card {
    background: var(--card-white);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--duration) var(--ease);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.package-card > .btn { margin-top: auto; }
.package-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.package-card.popular {
    border-color: var(--gold);
    box-shadow: 0 0 0 1px var(--gold);
}
.package-card.popular .package-card__popular-tag {
    display: block;
}
.package-card__popular-tag {
    display: none;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #D4AF37, #F5D062);
    color: var(--primary-dark);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 800;
    padding: 3px 16px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.package-card__name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 4px;
}
.package-card__price {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-red);
}
.package-card__price small {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}
.package-card__features {
    margin: var(--space-lg) 0;
    text-align: left;
    flex: 1 1 auto;
}
.package-card__features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 0;
    font-size: 13.5px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}
.package-card__features li:last-child { border: none; }
.package-card__features li svg {
    width: 16px;
    height: 16px;
    color: var(--success);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── AVATAR ── */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    overflow: hidden;
    background: var(--accent-red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 32px; height: 32px; font-size: 12px; }
.avatar-lg { width: 64px; height: 64px; font-size: 22px; }

/* ── DROPDOWN ── */
.dropdown {
    position: relative;
}
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--card-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--duration) var(--ease);
    padding: 6px;
}
.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    font-size: 14px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.15s var(--ease);
}
.dropdown-item:hover {
    background: var(--bg);
    color: var(--text-primary);
}
.dropdown-item svg { width: 18px; height: 18px; opacity: 0.6; }
.dropdown-divider {
    height: 1px;
    background: var(--border-light);
    margin: 4px 0;
}

/* ── PILL LİNK ── */
.pill-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-display);
    color: var(--text-secondary);
    background: var(--card-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-pill);
    transition: all var(--duration) var(--ease);
    white-space: nowrap;
}
.pill-link:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
    background: var(--red-light);
}

/* ── NO-IMAGE PLACEHOLDER ── */
.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border-light);
    color: var(--text-muted);
}
.no-image svg { width: 48px; height: 48px; opacity: 0.4; }
