/* ================================================
   GEMEINSAME KOMPONENTEN
   ================================================ */

/* Steckbrief Container */
.steckbrief-container {
    background-color: rgba(255, 248, 220, 0.95);
    border: 3px solid #6e4b1f;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 0 15px #3c2f1c;
    max-width: 1024px;
    margin: auto;
    font-family: 'MedievalSharp', cursive;
}

.steckbrief-title {
    font-family: 'Uncial Antiqua', serif;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #6e4b1f;
}

/* Character Avatar Round - für Overview */
.character-avatar-round {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #d4af37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6),
                inset 0 0 10px rgba(212, 175, 55, 0.3);
    object-fit: cover;
    display: block;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.character-avatar-round:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.8),
                inset 0 0 15px rgba(212, 175, 55, 0.4);
    border-color: #b8941f;
}

/* Pergament Cards */
.pergament-card {
    background: linear-gradient(145deg, #f9f6f0, #f0e6d2);
    border: 3px solid #d4c4a8;
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 8px 16px rgba(93, 78, 55, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
}

.pergament-card::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid #e8dcc0;
    border-radius: 12px;
    pointer-events: none;
}

/* Card Corners */
.card-corner {
    position: absolute;
    width: 15px;
    height: 15px;
    border: 2px solid #8b7355;
}

.card-corner.top-left {
    top: 8px;
    left: 8px;
    border-right: none;
    border-bottom: none;
}

.card-corner.top-right {
    top: 8px;
    right: 8px;
    border-left: none;
    border-bottom: none;
}

.card-corner.bottom-left {
    bottom: 8px;
    left: 8px;
    border-right: none;
    border-top: none;
}

.card-corner.bottom-right {
    bottom: 8px;
    right: 8px;
    border-left: none;
    border-top: none;
}

/* Card Content */
.card-title {
    font-size: 1.4rem;
    color: #5d4e37;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
}

.card-content {
    color: #6d5d47;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 1rem;
}

.card-link {
    text-decoration: none;
}

/* Monster Sections */
.monster-section {
    background: linear-gradient(145deg, #faf8f3, #f0e6d2);
    border: 2px solid #d4c4a8;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(93, 78, 55, 0.15);
}

.monster-label {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #5d4e37;
    margin-bottom: 0.5rem;
}

.label-icon {
    font-size: 1.3rem;
    margin-right: 0.5rem;
}

/* Toggle Container */
.toggle-container {
    background: linear-gradient(145deg, #ffffff, #f5f1e8);
    border: 2px solid #d4af37;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.2);
}

/* Medieval Switch */
.medieval-switch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.medieval-switch .form-check-input {
    width: 3.5rem;
    height: 2rem;
    cursor: pointer;
    background-color: #8b7355;
    border: 2px solid #6e4b1f;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.medieval-switch .form-check-input:checked {
    background-color: #d4af37;
    border-color: #b8941f;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

.medieval-switch .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}

.switch-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-family: 'Cinzel', serif;
}

.switch-icon {
    font-size: 2rem;
    margin-bottom: 0.3rem;
}

.switch-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #5d4e37;
    line-height: 1.3;
}

.switch-text small {
    font-size: 0.7rem;
    color: #8b7355;
}

/* Monster Overview */
.monster-overview-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 2rem;
}

.monster-type-section {
    background: linear-gradient(145deg, #faf8f3, #f0ede6);
    border: 3px solid #8b7355;
    border-radius: 15px;
    margin-bottom: 2rem;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(93, 78, 55, 0.2);
}

.monster-type-header {
    font-family: 'Uncial Antiqua', serif;
    font-size: 2rem;
    color: #5d4e37;
    border-bottom: 3px solid #d4af37;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Monster Grid */
.monster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.monster-card {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #d4c4a8;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.monster-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(212, 175, 55, 0.3);
    border-color: #d4af37;
}

.monster-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #d4c4a8;
}

.monster-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #d4af37;
    object-fit: cover;
    flex-shrink: 0;
}

.monster-image-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #d4c4a8;
    background: linear-gradient(45deg, #8b7355, #6b5345);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.monster-name {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #5d4e37;
    margin: 0;
}

.monster-description {
    font-family: Georgia, serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a4237;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(250, 248, 243, 0.6);
    border-radius: 8px;
    border-left: 4px solid #d4af37;
}

.monster-extra-info {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(145deg, #f9f6f0, #f0e6d2);
    border: 2px solid #d4af37;
    border-radius: 8px;
}

.monster-extra-info-header {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: #5d4e37;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.monster-extra-info-content {
    font-family: Georgia, serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #4a4237;
}

.no-monsters-message {
    text-align: center;
    padding: 3rem;
    color: #8b7355;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
}

/* Badges */
.monster-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: linear-gradient(45deg, #d4af37, #b8941f);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.locked-badge {
    background: linear-gradient(45deg, #6b5345, #4a3829);
    color: #d4c4a8;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    display: inline-block;
    margin-top: 0.5rem;
}

.perfected-badge {
    background: linear-gradient(45deg, #d4af37, #b8941f);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    display: inline-block;
    margin-top: 0.5rem;
}

/* Monster Accordion */
.monster-accordion .accordion-item {
    background: linear-gradient(145deg, #faf8f3, #f0e6d2);
    border: 2px solid #d4c4a8;
    border-radius: 12px !important;
    margin-bottom: 1rem;
    overflow: hidden;
}

.monster-accordion .accordion-header {
    border-radius: 12px !important;
}

.monster-accordion .accordion-button {
    background: linear-gradient(145deg, #f5f1e8, #e8dcc0);
    color: #5d4e37;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    border: none;
    padding: 1.25rem;
}

.monster-accordion .accordion-button:not(.collapsed) {
    background: linear-gradient(145deg, #d4af37, #b8941f);
    color: white;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}

.monster-accordion .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}

.monster-accordion .accordion-body {
    padding: 1.5rem;
    background: rgba(255, 248, 220, 0.5);
}

.locked-monster {
    opacity: 0.6;
    filter: grayscale(50%);
}

.monster-inner-card {
    background: white;
    border: 2px solid #d4c4a8;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.monster-inner-card.locked {
    border-color: #8b7355;
    background: linear-gradient(145deg, #f5f5f5, #e0e0e0);
}

.monster-image-container {
    text-align: center;
    margin-bottom: 1rem;
}

.monster-image-container img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #d4af37;
    object-fit: cover;
}

.monster-image-container img.locked {
    filter: blur(8px) grayscale(100%);
    border-color: #6b5345;
}

/* Bootstrap Form Overrides */
.form-control, .form-select {
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid #d4c4a8;
    border-radius: 8px;
    padding: 0.75rem;
    transition: border-color 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #6e4b1f;
    box-shadow: 0 0 0 0.2rem rgba(110, 75, 31, 0.25);
}

.form-check-input:checked {
    background-color: #6e4b1f;
    border-color: #6e4b1f;
}

/* Button Check Styles */
.steckbrief-container .btn-group .btn-check:checked + .btn,
form .btn-check:checked + .btn.flex-fill {
    border: 4px solid #000 !important;
    box-shadow: 0 0 15px rgba(0,0,0,0.8) !important;
    transform: scale(1.15) !important;
    position: relative !important;
    z-index: 10 !important;
}

.steckbrief-container .btn-group .btn-check:checked + .btn::after,
form .btn-check:checked + .btn.flex-fill::after {
    content: "✓" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: #fff !important;
    font-weight: bold !important;
    font-size: 16px !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8) !important;
    z-index: 11 !important;
    pointer-events: none !important;
}

/* Responsive */
@media (max-width: 992px) {
    .toggle-container {
        margin-bottom: 1rem;
    }
}
