/* Evcil Hayvan — mor-altın yuva teması */
body.evcil-hayvan-page {
    --evcil-purple: #7c3aed;
    --evcil-purple-deep: #5b21b6;
    --evcil-gold: #d4af37;
    --evcil-rose: #f472b6;
    min-height: 100vh;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    position: relative;
    overflow-x: hidden;
}

.evcil-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem 3rem;
    position: relative;
    z-index: 1;
}

.main-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    width: 100%;
    background: linear-gradient(135deg, rgba(12, 8, 24, 0.88) 0%, rgba(20, 12, 36, 0.82) 100%);
    border-radius: 1.5rem;
    border: 2px solid rgba(212, 175, 55, 0.22);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    padding: 2rem;
    margin-top: 80px;
}

.page-title-box {
    margin-bottom: 1.5rem;
}

.action-title {
    font-family: 'HiJack', sans-serif !important;
    font-size: clamp(1.5rem, 4vw, 2.5rem) !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    letter-spacing: 0.02em !important;
    margin: 0 !important;
    background-image: linear-gradient(90deg, #a78bfa 0%, #d4af37 45%, #ffffff 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.page-subtitle {
    color: #a3a3a3;
    font-size: 1rem;
    margin-top: 0.5rem;
    text-align: center;
}

.info-section {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
    .info-section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.info-card {
    background: rgba(30, 20, 50, 0.75);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
}

.info-card-title {
    font-size: 0.8rem;
    color: #a3a3a3;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.info-card-title img {
    width: 18px;
    height: 18px;
}

.info-card-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.evcil-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: start;
}

@media (max-width: 960px) {
    .evcil-split {
        grid-template-columns: 1fr;
    }
}

.evcil-panel {
    background: rgba(20, 14, 36, 0.8);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 1rem;
    padding: 1.25rem;
    text-align: left;
}

.evcil-panel-title {
    font-size: 1rem;
    font-weight: 700;
    color: #e9d5ff;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.evcil-showcase {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.evcil-showcase-img {
    width: 148px;
    height: 148px;
    object-fit: contain;
    object-position: center;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.evcil-showcase-body {
    flex: 1;
    min-width: 0;
}

.evcil-pet-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.evcil-pet-desc {
    font-size: 0.82rem;
    color: #a3a3a3;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.evcil-bonus-range {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.25rem;
    margin-bottom: 0.35rem;
}

.evcil-bonus-cap {
    font-size: 0.78rem;
    font-weight: 700;
    margin: 0.35rem 0;
    padding: 0.35rem 0.55rem;
    border-radius: 0.5rem;
}

.evcil-bonus-cap--max {
    color: #fcd34d;
    background: rgba(252, 211, 77, 0.12);
    border: 1px solid rgba(252, 211, 77, 0.35);
}

.evcil-bonus-cap--min {
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.evcil-bonus-line {
    font-size: 0.85rem;
    color: #c4b5fd;
    margin-bottom: 0.75rem;
}

.evcil-bonus-line strong {
    color: var(--evcil-gold);
}

.evcil-deha-tag {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.15);
    color: var(--evcil-gold);
    margin-bottom: 0.5rem;
}

.evcil-vitals-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #a3a3a3;
    margin: 0.5rem 0 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Kademeli barlar */
.evcil-vitals-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.evcil-vitals-row .evcil-segments {
    flex: 1;
    min-width: 0;
}

.evcil-vitals-pct {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--evcil-gold);
    min-width: 3.25rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.evcil-segments {
    display: flex;
    gap: 3px;
}

.evcil-segments.hunger .evcil-seg.filled:not(.partial) {
    background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.evcil-segments.health .evcil-seg.filled:not(.partial) {
    background: linear-gradient(180deg, #f87171 0%, #dc2626 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.evcil-seg {
    flex: 1;
    height: 10px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.evcil-segments.hunger .evcil-seg.partial::before,
.evcil-segments.health .evcil-seg.partial::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--fill, 0%);
    max-width: 100%;
    border-radius: 2px;
    pointer-events: none;
}

.evcil-segments.hunger .evcil-seg.partial::before {
    background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
}

.evcil-segments.health .evcil-seg.partial::before {
    background: linear-gradient(180deg, #f87171 0%, #dc2626 100%);
}

.evcil-seg.low-warning.filled {
    animation: evcil-pulse 1.5s ease-in-out infinite;
}

@keyframes evcil-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.65; }
}

.evcil-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.evcil-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.15s, opacity 0.15s;
}

.evcil-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.evcil-btn-primary {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: #fff;
}

.evcil-btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
}

.evcil-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #e5e5e5;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.evcil-btn-gold {
    background: linear-gradient(135deg, #b8860b, #d4af37);
    color: #1a1028;
}

.evcil-target-hint {
    font-size: 0.82rem;
    color: #a3a3a3;
    margin-bottom: 0.75rem;
    padding: 0.65rem 0.85rem;
    background: rgba(124, 58, 237, 0.12);
    border-radius: 0.5rem;
    border-left: 3px solid #a78bfa;
}

.evcil-target-hint strong {
    color: #e9d5ff;
}

.evcil-item-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.evcil-item-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem;
    background: rgba(30, 20, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.65rem;
}

.evcil-item-row.disabled {
    opacity: 0.5;
}

.evcil-item-row img {
    width: 40px;
    height: 40px;
}

.evcil-item-name {
    font-weight: 600;
    color: #fff;
    font-size: 0.9rem;
}

.evcil-item-desc {
    font-size: 0.75rem;
    color: #a3a3a3;
    margin-top: 0.15rem;
}

.evcil-item-stock {
    font-size: 0.75rem;
    color: #a78bfa;
    margin-top: 0.15rem;
}

.evcil-section {
    margin-top: 0.5rem;
}

.evcil-section-head {
    font-size: 1.05rem;
    font-weight: 700;
    color: #e9d5ff;
    margin: 0 0 1rem;
    text-align: left;
}

.evcil-pet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.85rem;
}

.evcil-pet-card {
    background: rgba(20, 14, 36, 0.85);
    border: 2px solid rgba(167, 139, 250, 0.18);
    border-radius: 0.85rem;
    padding: 0.85rem;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    text-align: left;
}

.evcil-pet-card:hover {
    border-color: rgba(167, 139, 250, 0.45);
    transform: translateY(-2px);
}

.evcil-pet-card.selected {
    border-color: var(--evcil-gold);
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.2);
}

.evcil-pet-card.equipped {
    border-color: rgba(52, 211, 153, 0.5);
}

.evcil-pet-card.dead {
    opacity: 0.55;
    filter: grayscale(0.35);
}

.evcil-pet-card-top {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.evcil-pet-card-top img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.evcil-badge {
    display: inline-block;
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    margin-left: 0.25rem;
    vertical-align: middle;
}

.evcil-badge-equipped {
    background: rgba(52, 211, 153, 0.2);
    color: #6ee7b7;
}

.evcil-badge-dead {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.evcil-badge-lock {
    background: rgba(212, 175, 55, 0.22);
    color: #f5d77a;
    font-size: 0.72rem;
    padding: 0.05rem 0.35rem;
}

.evcil-pet-card.deha-locked {
    box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.35);
}

.evcil-deha-tag--locked {
    color: #f5d77a;
}

.evcil-empty {
    text-align: center;
    padding: 2rem;
    color: #a3a3a3;
    background: rgba(20, 14, 36, 0.5);
    border-radius: 1rem;
    border: 1px dashed rgba(167, 139, 250, 0.25);
}

.evcil-magaza-link {
    color: #a78bfa;
    font-weight: 600;
    text-decoration: none;
}

.evcil-magaza-link:hover {
    text-decoration: underline;
}

/* Deha modal */
.evcil-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    padding: 1rem;
}

.evcil-modal.active {
    display: flex;
}

.evcil-modal-box {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(145deg, rgba(20, 12, 36, 0.98), rgba(30, 18, 50, 0.98));
    border: 2px solid rgba(212, 175, 55, 0.35);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
}

.evcil-modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem;
}

.evcil-modal-pet {
    color: #a78bfa;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.evcil-deha-compare {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.evcil-deha-col {
    padding: 0.85rem;
    border-radius: 0.65rem;
    background: rgba(0, 0, 0, 0.25);
}

.evcil-deha-col-label {
    font-size: 0.7rem;
    color: #a3a3a3;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.evcil-deha-col-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
}

.evcil-deha-col-sub {
    font-size: 0.75rem;
    color: #a3a3a3;
    margin-top: 0.25rem;
}

.evcil-deha-arrow {
    font-size: 1.5rem;
}

.evcil-deha-arrow.up { color: #34d399; }
.evcil-deha-arrow.down { color: #f87171; }
.evcil-deha-arrow.same { color: #a3a3a3; }

.evcil-deha-result {
    font-size: 0.9rem;
    padding: 0.65rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.evcil-deha-result.up {
    background: rgba(52, 211, 153, 0.12);
    color: #6ee7b7;
    border: 1px solid rgba(52, 211, 153, 0.25);
}

.evcil-deha-result.down {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.evcil-deha-result.same {
    background: rgba(163, 163, 163, 0.1);
    color: #d4d4d4;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(167, 139, 250, 0.15);
    border-top-color: #a78bfa;
    border-radius: 50%;
    animation: evcil-spin 1s linear infinite;
}

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

.evcil-pet-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    align-items: flex-end;
}

.evcil-filter-label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.evcil-filter-label-text {
    font-size: 0.78rem;
    color: #a3a3a3;
}

.evcil-filter-species {
    flex: 0 0 auto;
    width: min(100%, 20rem);
    min-width: min(100%, 16rem);
}

.evcil-filter-search {
    flex: 0 1 auto;
    width: min(100%, 14rem);
}

.evcil-filter-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(212, 175, 55, 0.25);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 0.9rem;
}

.evcil-filter-select-native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.evcil-custom-select {
    position: relative;
    width: 100%;
    z-index: 1;
}

.evcil-custom-select--open {
    z-index: 50;
}

.evcil-custom-select-display #petSpeciesDisplayText {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.evcil-custom-select-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(212, 175, 55, 0.28);
    background: linear-gradient(135deg, rgba(30, 20, 48, 0.95) 0%, rgba(12, 8, 24, 0.9) 100%);
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.evcil-custom-select-display:hover,
.evcil-custom-select--open .evcil-custom-select-display {
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.15);
}

.evcil-custom-select-arrow {
    font-size: 0.7rem;
    opacity: 0.75;
    transition: transform 0.2s;
}

.evcil-custom-select--open .evcil-custom-select-arrow {
    transform: rotate(180deg);
}

.evcil-custom-select-dropdown {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    right: auto;
    min-width: 100%;
    width: max-content;
    max-width: min(calc(100vw - 2rem), 22rem);
    max-height: 240px;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 0.5rem;
    border: 1px solid rgba(212, 175, 55, 0.22);
    background: linear-gradient(180deg, rgba(22, 14, 38, 0.98) 0%, rgba(10, 6, 20, 0.98) 100%);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(12px);
}

.evcil-custom-select-dropdown[hidden] {
    display: none !important;
}

.evcil-custom-select-option {
    display: block;
    width: 100%;
    min-width: max-content;
    box-sizing: border-box;
    padding: 0.6rem 0.85rem;
    white-space: nowrap;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.88rem;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s;
}

.evcil-custom-select-option:last-child {
    border-bottom: none;
}

.evcil-custom-select-option:hover {
    background: rgba(124, 58, 237, 0.22);
}

.evcil-custom-select-option.selected {
    background: rgba(212, 175, 55, 0.12);
    color: #e5b865;
    font-weight: 600;
}

.evcil-pet-name-block {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.evcil-pet-system-name {
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
}

.evcil-pet-system-name--sm {
    font-size: 0.72rem;
}

.evcil-pet-name--sm {
    font-size: 0.95rem !important;
}

.evcil-rename-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.85rem;
    margin: 0.75rem 0 0.35rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 1rem;
}

.evcil-rename-hint {
    font-size: 0.82rem;
    color: #a3a3a3;
    margin: 0 0 0.75rem;
}

.evcil-modal-actions-row {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.evcil-hint-sub {
    font-size: 0.85em;
    opacity: 0.75;
}
