﻿.game-tools-common {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

:root {
    --primary: #d4763c;
    --primary-light: rgba(212, 118, 60, 0.15);
    --accent-orange: #b8602e;
    --accent-pink: #ec4899;
    --accent-red: #ef4444;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --shadow-dark: rgba(0, 0, 0, 0.2);
    --shadow-light: rgba(255, 255, 255, 0.05);
    --text-light: #9ca3af;
}

[data-theme="light"] {
    --primary: #d4763c;
    --primary-light: rgba(212, 118, 60, 0.1);
    --accent-orange: #b8602e;
    --accent-pink: #ec4899;
    --accent-red: #ef4444;
    --accent-blue: #3b82f6;
    --accent-purple: #667eea;
    --shadow-dark: rgba(0, 0, 0, 0.1);
    --shadow-light: rgba(255, 255, 255, 0.8);
    --text-light: #6b7280;
}
[data-theme="light"] .modal-overlay,
[data-theme="light"] .pet-modal,
[data-theme="light"] .transfer-modal {
    background: rgba(0,0,0,0.5);
}

[data-theme="light"] .modal-content,
[data-theme="light"] .pet-modal .modal-content {
    background: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

[data-theme="light"] .modal-close-btn {
    background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(240,240,240,0.8));
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: #666;
}

[data-theme="light"] .modal-close-btn:hover {
    color: var(--accent-pink);
}

[data-theme="light"] .transfer-content {
    background: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

[data-theme="light"] .section-card {
    background: #f8f9fa;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

[data-theme="light"] .section-title {
    color: #1f2937;
}

[data-theme="light"] .section-title .badge {
    background: var(--primary);
    color: #fff;
}

[data-theme="light"] .path-node .p-name {
    color: #1f2937;
}

[data-theme="light"] .target-item {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

[data-theme="light"] .target-item:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

[data-theme="light"] .target-item .t-name {
    color: #1f2937;
}

[data-theme="light"] .target-item .t-groups {
    color: #6b7280;
}

[data-theme="light"] .gender-btn {
    background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(240,240,240,0.8));
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    color: #666;
}

[data-theme="light"] .gender-btn:hover {
    background: linear-gradient(145deg, rgba(255,255,255,1), rgba(245,245,245,0.9));
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

[data-theme="light"] .gender-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--accent-orange));
    color: #fff;
    box-shadow: 0 4px 12px rgba(212,118,60,0.3);
}

[data-theme="light"] .filter-chip.active {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: #fff;
    box-shadow: inset 3px 3px 6px rgba(0,0,0,0.1), inset -3px -3px 6px rgba(255,255,255,0.2);
}

.filter-section {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
}

.filter-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    padding-left: 4px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.filter-chip {
    padding: 8px 14px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255,255,255,0.5), rgba(255,255,255,0.2));
    box-shadow: 3px 3px 6px var(--shadow-dark), -3px -3px 6px var(--shadow-light);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 36px;
    height: 36px;
}

.filter-chip:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
}

.filter-chip.active {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: var(--text-primary);
    box-shadow: inset 3px 3px 6px rgba(0,0,0,0.1), inset -3px -3px 6px rgba(255,255,255,0.2);
}

.filter-toggle {
    display: flex;
    gap: 10px;
}

.toggle-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255,255,255,0.5), rgba(255,255,255,0.2));
    box-shadow: 3px 3px 6px var(--shadow-dark), -3px -3px 6px var(--shadow-light);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
}

.toggle-btn.active {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #333;
    box-shadow: inset 3px 3px 6px rgba(0,0,0,0.1), inset -3px -3px 6px rgba(255,255,255,0.3);
}

.stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 14px;
    box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
}

.stats-count {
    font-size: 14px;
    color: var(--text-secondary);
}

.stats-count span {
    color: var(--accent-blue);
    font-weight: 600;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
}

.modal-overlay.show {
    display: flex;
}

.pet-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
}

.pet-modal.show {
    display: flex;
}

.transfer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
}

.transfer-modal.show {
    display: flex;
}

.transfer-content {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 25px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.transfer-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255,255,255,0.5), rgba(255,255,255,0.2));
    box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 10;
}

.transfer-close:hover {
    transform: rotate(90deg);
    color: var(--accent-pink);
}

.transfer-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.transfer-header {
    background: linear-gradient(135deg, var(--primary), var(--accent-orange));
    padding: 20px;
    display: flex;
    align-items: center;
    border-radius: 16px;
    margin-bottom: 20px;
}

.transfer-header img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}

.transfer-header .info {
    margin-left: 15px;
    color: #fff;
    flex: 1;
}

.transfer-header .info .num {
    font-size: 12px;
    opacity: 0.8;
}

.transfer-header .info .name {
    font-size: 22px;
    font-weight: 700;
    margin: 6px 0 10px;
}

.transfer-header .info .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.transfer-header .tag {
    height: 26px;
    padding: 0 12px;
    border-radius: 13px;
    background: rgba(255,255,255,0.22);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-container {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 25px;
    max-width: 500px;
    width: 100%;
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255,255,255,0.5), rgba(255,255,255,0.2));
    box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close-btn:hover {
    transform: rotate(90deg);
    color: var(--accent-pink);
}

.section-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title .badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 8px;
}

.path-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.path-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 55px;
}

.path-node img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.path-node .p-name {
    font-size: 10px;
    font-weight: 500;
    margin-top: 4px;
    text-align: center;
    max-width: 65px;
    line-height: 1.2;
    color: var(--text-primary);
}

.path-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 45px;
}

.path-arrow .a-via {
    font-size: 9px;
    color: var(--text-light);
    white-space: nowrap;
}

.path-arrow .a-icon {
    font-size: 18px;
    color: var(--primary);
    margin: 4px 0;
}

.target-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.target-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: linear-gradient(145deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
    border-radius: 12px;
    box-shadow: 3px 3px 6px var(--shadow-dark), -3px -3px 6px var(--shadow-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.target-item:hover {
    transform: translateY(-2px);
    box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
}

.target-item:active {
    background: var(--primary-light);
}

.target-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
}

.target-item .t-info {
    flex: 1;
    min-width: 0;
}

.target-item .t-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.target-item .t-groups {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
}

.target-item .t-steps {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
    padding: 6px 12px;
    background: linear-gradient(145deg, rgba(212,118,60,0.15), rgba(184,96,46,0.1));
    border-radius: 10px;
}

.target-item.disabled {
    opacity: 0.4;
    cursor: default;
}

.target-item.disabled:hover {
    transform: none;
}

.path-detail {
    background: linear-gradient(145deg, rgba(102,126,234,0.1), rgba(118,75,162,0.05));
    border-radius: 12px;
    padding: 15px;
    margin-top: 12px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.gender-select {
    display: flex;
    gap: 12px;
}

.gender-btn {
    flex: 1;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(145deg, rgba(255,255,255,0.5), rgba(255,255,255,0.2));
    box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.gender-btn:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
}

.gender-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--accent-orange));
    color: #fff;
    box-shadow: inset 3px 3px 6px rgba(0,0,0,0.1), inset -3px -3px 6px rgba(255,255,255,0.2);
}

@media (max-width: 768px) {
    .filter-section {
        padding: 15px;
        border-radius: 16px;
        margin-bottom: 20px;
    }
    
    .filter-buttons {
        gap: 12px;
        margin-top: 12px;
    }
    
    .filter-group {
        gap: 8px;
    }
    
    .filter-label {
        font-size: 13px;
    }
    
    .filter-chips {
        width: 100%;
        flex-wrap: wrap;
        gap: 6px;
    }

    .filter-chip {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 34px;
        height: 34px;
    }

    .toggle-btn {
        width: 100%;
        justify-content: center;
    }

    .modal-container {
        padding: 15px;
        max-height: 90vh;
        border-radius: 20px;
    }

    .section-card {
        padding: 12px;
    }

    .target-item {
        gap: 10px;
        padding: 10px;
    }

    .target-item img {
        width: 42px;
        height: 42px;
    }

    .path-node img {
        width: 38px;
        height: 38px;
    }
}

