/* ======================================= */
/* ========== ТАБЛИЦА МАЯКОВ ========== */
/* ======================================= */

.forceitems-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.forceitems-table th,
.forceitems-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.forceitems-table th {
    background: #4a4a8a;
    font-weight: 700;
    color: white;
}

.forceitems-table td {
    color: #000000;
    font-weight: 500;
}

.forceitems-table .icon {
    width: 50px;
    text-align: center;
}

.forceitems-table .icon img {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}

.forceitems-table .name-cell {
    text-align: left;
    font-weight: 600;
}

.forceitems-table .status-cell {
    font-size: 1.2em;
    text-align: center;
}

.forceitems-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.forceitems-table tbody tr:hover {
    background-color: #e8e8ff;
    cursor: pointer;
}

/* ======================================= */
/* ========== ДЕТАЛЬНАЯ СТРАНИЦА ========== */
/* ======================================= */

.forceitem-header {
    margin: 20px 0;
    padding: 25px;
    background: linear-gradient(135deg, #4a4a8a 0%, #2c3e50 100%);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.forceitem-icon-large {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.forceitem-icon-large img {
    max-width: 64px;
    max-height: 64px;
    object-fit: contain;
}

.forceitem-title {
    flex: 1;
}

.forceitem-title h1 {
    margin: 0 0 5px 0;
    font-size: 2em;
}

.forceitem-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.forceitem-code {
    color: rgba(255,255,255,0.7);
    font-size: 0.9em;
}

.forceitem-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.stat-card h3 {
    margin: 0 0 15px 0;
    color: #4a4a8a;
    font-size: 1.2em;
    border-bottom: 2px solid #4a4a8a;
    padding-bottom: 8px;
}

.stat-card.compact {
    padding: 15px;
}

.stat-card.compact h3 {
    margin: 0 0 12px 0;
    font-size: 1.1em;
}

.compact-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.compact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}

.compact-row:last-child {
    border-bottom: none;
}

.compact-label {
    color: #555;
    font-weight: 500;
    font-size: 0.95em;
}

.stat-value {
    font-weight: 700;
    color: #2c3e50;
}

.force-key {
    font-family: monospace;
    font-size: 1.1em;
    letter-spacing: 1px;
}

/* ======================================= */
/* ========== РАСЫ ========== */
/* ======================================= */

.civil-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 700;
    color: white;
    text-align: center;
    min-width: 80px;
}

.civil-badge.all { background: #4a4a8a; }
.civil-badge.bellato { background: #28a745; }
.civil-badge.cora { background: #17a2b8; }
.civil-badge.acretia { background: #dc3545; }
.civil-badge.unknown { background: #6c757d; }

/* ======================================= */
/* ========== СТАТУСЫ ========== */
/* ======================================= */

.status-allowed {
    color: #28a745;
    font-weight: 600;
}

.status-forbidden {
    color: #dc3545;
    font-weight: 600;
}

/* ======================================= */
/* ========== ОПИСАНИЕ ========== */
/* ======================================= */

.description-section {
    margin: 30px 0;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.description-section h2 {
    color: #4a4a8a;
    font-size: 1.3em;
    margin-bottom: 15px;
    border-bottom: 2px solid #4a4a8a;
    padding-bottom: 5px;
}

.description-text {
    line-height: 1.6;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* ======================================= */
/* ========== ФИЛЬТРЫ ========== */
/* ======================================= */

.filters-section {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid #4a4a8a;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.filters-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.filters-form .search-box {
    flex: 2;
    min-width: 250px;
}

.filters-form input {
    width: 100%;
    padding: 10px 15px;
    background: #1a1a2e;
    border: 2px solid #4a4a8a;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
}

.filters-form button {
    padding: 10px 25px;
    background: #4a4a8a;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.clear-btn {
    padding: 10px 25px;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 8px;
}

.results-info {
    margin: 15px 0;
    padding: 10px 15px;
    background: rgba(74, 74, 138, 0.2);
    border-left: 4px solid #4a4a8a;
    color: #ffffff;
    font-weight: 600;
    border-radius: 0 5px 5px 0;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pagination a {
    display: inline-block;
    padding: 10px 15px;
    background: #1a1a2e;
    border: 1px solid #4a4a8a;
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 5px;
}

.pagination a:hover {
    background: #4a4a8a;
    color: white;
}

.pagination a.active {
    background: #4a4a8a;
    color: white;
    font-weight: bold;
}

.breadcrumbs {
    margin: 15px 0 20px;
}

.breadcrumbs a {
    display: inline-block;
    padding: 8px 16px;
    background: #4a4a8a;
    color: white !important;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 30px;
}
.civil-badge.multi { 
    background: linear-gradient(135deg, #28a745, #17a2b8);
}
/* ======================================= */
/* ========== ИНФОРМАЦИЯ О МАГИИ ========== */
/* ======================================= */

.force-info-section {
    margin: 30px 0;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.force-info-section h2 {
    color: #4a4a8a;
    font-size: 1.3em;
    margin-bottom: 20px;
    border-bottom: 2px solid #4a4a8a;
    padding-bottom: 8px;
}

.force-card {
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
}

.force-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #4a4a8a, #5a5aaa);
    color: white;
}

.force-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.force-icon img {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}

.force-title-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.2em;
}

.force-tags {
    display: flex;
    gap: 10px;
}

.force-lvl, .force-group {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 600;
}

.force-lvl {
    background: #ffc107;
    color: #333;
}

.force-group {
    background: #28a745;
    color: white;
}

.force-card-body {
    padding: 15px;
}

.force-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.force-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #e0e0e0;
}

.force-stat .stat-label {
    font-weight: 600;
    color: #555;
}

.force-stat .stat-value {
    font-weight: 700;
    color: #2c3e50;
}

.force-effect-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.effect-label {
    font-weight: 600;
    color: #4a4a8a;
}

.details-link {
    margin-left: auto;
    padding: 5px 12px;
    background: #4a4a8a;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.8em;
    transition: background 0.2s;
}

.details-link:hover {
    background: #2c2c5a;
}
/* ======================================= */
/* ========== ТАБЛИЦА ЭФФЕКТОВ МАГИИ ========== */
/* ======================================= */

.force-effects-table {
    padding: 15px;
    background: #f9f9f9;
}

.effects-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.effects-table th,
.effects-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.effects-table th {
    background: #4a4a8a;
    color: white;
    font-weight: 600;
}

.effects-table .level-cell {
    width: 80px;
    text-align: center;
    font-weight: 700;
    color: #4a4a8a;
}

.effects-table .duration-cell {
    width: 120px;
    text-align: center;
    color: #2c3e50;
    font-weight: 500;
}

.effects-table .effects-cell {
    color: #333;
}

.effects-table tbody tr:hover {
    background-color: #f5f5f5;
}

.force-card-footer {
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    text-align: right;
}

.force-card-footer .details-link {
    display: inline-block;
    padding: 6px 14px;
    background: #4a4a8a;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85em;
    transition: background 0.2s;
}

.force-card-footer .details-link:hover {
    background: #2c2c5a;
}
/* ======================================= */
/* ========== АДАПТИВНОСТЬ ========== */
/* ======================================= */

@media (max-width: 768px) {
    .force-card-header {
        flex-direction: column;
        text-align: center;
    }
    
    .force-stats {
        grid-template-columns: 1fr;
    }
    
    .force-effect-preview {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .details-link {
        margin-left: 0;
    }
}
@media (max-width: 768px) {
    .forceitems-table {
        font-size: 0.85em;
    }
    
    .filters-form {
        flex-direction: column;
    }
    
    .forceitem-header {
        flex-direction: column;
        text-align: center;
    }
    
    .forceitem-stats-grid {
        grid-template-columns: 1fr;
    }
}