/* --- OGÓLNE I ANIMACJE --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- NAGŁÓWEK STRONY --- */
.page-header-box {
    margin: 20px 0;
    text-align: center;
}

.page-header-text {
    display: inline-block;
    padding: 10px 30px;
    background: linear-gradient(145deg, rgba(15, 15, 18, 0.95), rgba(10, 10, 12, 0.95));
    border: 1px solid rgba(168, 85, 247, 0.5);
    border-radius: 12px;
    font-size: 28px;
    font-weight: 800;
    color: #39ff14;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.5), 2px 2px 4px rgba(0,0,0,0.8);
}

.page-header-content {
    background: rgba(20, 20, 25, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(176, 140, 90, 0.3);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: fadeIn 0.5s ease;
}

/* --- WYSZUKIWARKA --- */
.monster-search-form {
    text-align: center; 
    margin-bottom: 20px;
}

.monster-search-input {
    font-weight: bold;
    background: rgba(15, 15, 18, 0.9);
    color: #f1f5f9;
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid rgba(168, 85, 247, 0.5);
    text-align: center;
    width: 250px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.7);
}

.monster-search-input:focus {
    border-color: #a855f7;
    width: 300px;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3), inset 0 2px 5px rgba(0,0,0,0.7);
}

/* --- TABELA WYNIKÓW --- */
.result-table {
    width: 95%;
    margin: 20px auto;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(15, 15, 18, 0.6);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
}

.result-table th {
    background: rgba(15, 15, 18, 0.9);
    color: #39ff14;
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
    padding: 12px 15px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.3);
    text-align: center;
}

.result-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
    color: #ddd;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.result-table tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.02);
}

.result-table tr:hover td {
    background: rgba(168, 85, 247, 0.1) !important;
    color: #fff;
}

/* --- KARTY KATEGORII (GRID) --- */
.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); 
    gap: 20px; 
    padding: 10px;
}

.category-card {
    width: 90px;
    padding: 12px 6px;
    background: rgba(15, 15, 18, 0);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: #a855f7;
    box-shadow: 0 8px 15px rgba(0,0,0,0.7), 0 0 10px rgba(168, 85, 247, 0.3);
}

.category-card img { 
    width: 50px; 
    height: 50px; 
    image-rendering: pixelated; 
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.category-card .gallery-card-title {
    font-size: 11px;
    font-weight: bold;
    color: #39ff14;
    text-shadow: 0 0 5px rgba(57, 255, 20, 0.4);
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 6px;
    border-radius: 4px;
    text-shadow: 1px 1px 2px #000;
}

/* --- PRZYCISKI I LINKI --- */
.skill-btn-forge {
    display: block;
    width: 200px; /* Przykładowa szerokość */
    margin: 20px auto;
    padding: 12px;
    background: rgba(15, 15, 18, 0.8);
    border: 1px solid rgba(168, 85, 247, 0.5);
    border-radius: 8px;
    color: #39ff14;
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.skill-btn-forge:hover {
    background: #39ff14;
    color: #000;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.6);
}

.monster-link {
    font-weight: bold;
    color: #39ff14;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
}

.monster-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.8), 0 0 20px rgba(57, 255, 20, 0.4);
    letter-spacing: 0.5px; /* Delikatne rozciągnięcie przy najechaniu */
}