/* Magazyny */
.waw-mag-container {
    font-family: inherit;
    max-width: 1200px;
    margin: 0 auto;
    color: #333;
}

.waw-mag-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 2rem;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
}

.waw-mag-checkboxes {
    display: flex;
    gap: 15px;
    width: 100%;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.waw-mag-checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.9rem;
}

.waw-mag-controls select {
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: white;
    font-family: inherit;
    outline: none;
    flex-grow: 1;
    min-width: 150px;
}

.waw-mag-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .waw-mag-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .waw-mag-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .waw-mag-list {
        grid-template-columns: 1fr;
    }
}

.waw-mag-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 2px solid transparent;
}

.waw-mag-type-trenuj {
    background-color: #e3f2fd;
    border-color: #2196f3;
}

.waw-mag-type-specjalne {
    background-color: #fff3e0;
    border-color: #ff9800;
}

.waw-mag-type-bitwy {
    background-color: #ffebee;
    border-color: #f44336;
}

.waw-mag-type-label {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
    z-index: 2;
}

.waw-mag-type-trenuj .waw-mag-type-label { background-color: #2196f3; }
.waw-mag-type-specjalne .waw-mag-type-label { background-color: #ff9800; }
.waw-mag-type-bitwy .waw-mag-type-label { background-color: #f44336; }

.waw-mag-cover-wrapper {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.5);
}

.waw-mag-cover {
    max-width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    transition: transform 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.waw-mag-cover-wrapper a:hover .waw-mag-cover {
    transform: scale(1.05);
}

.waw-mag-number {
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    background: #333;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
}

.waw-mag-number a {
    color: white;
    text-decoration: none;
}

.waw-mag-number a:hover {
    text-decoration: underline;
}

.waw-mag-title {
    margin-top: 10px;
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.3;
    color: #333;
    padding: 0 10px;
}

.waw-mag-title a {
    color: #333;
    text-decoration: none;
}

.waw-mag-title a:hover {
    text-decoration: underline;
}

.waw-mag-details {
    padding: 20px;
    flex-grow: 1;
    background: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.waw-mag-detail-row {
    margin-bottom: 8px;
    line-height: 1.4;
}

.waw-mag-detail-row strong {
    color: #444;
}

.waw-mag-versus-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.waw-mag-versus-sprites {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

.waw-mag-versus-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.waw-mag-versus-item img {
    max-width: 100%;
    max-height: 100%;
}

.waw-mag-versus-text {
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0 5px;
}

.waw-mag-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.waw-mag-page-btn {
    padding: 8px 14px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    font-weight: bold;
    color: #333;
}

.waw-mag-page-btn:hover {
    background: #f0f0f0;
}

.waw-mag-page-btn.active {
    background: #2196f3;
    color: white;
    border-color: #2196f3;
}
