/* D&D Themed Custom Styles */

.prose {
    color: #3E2723;
    line-height: 1.75;
}

.prose h1, .prose h2, .prose h3 {
    font-family: 'Cinzel', serif;
    color: var(--burgundy);
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

.prose p {
    margin-bottom: 1em;
}

.prose ul, .prose ol {
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.prose code {
    background-color: rgba(139, 69, 19, 0.1);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

.prose pre {
    background-color: rgba(139, 69, 19, 0.1);
    padding: 1em;
    border-radius: 5px;
    overflow-x: auto;
}

/* D20 Dice SVG Styles */
.d20-container {
    display: inline-block;
    width: 100px;
    height: 100px;
    position: relative;
}

.d20-svg {
    width: 100%;
    height: 100%;
}

.d20-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.5em;
    color: var(--burgundy);
}

/* Ornate border effect */
.card-ornate {
    position: relative;
}

.card-ornate::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, var(--gold), var(--burgundy), var(--gold));
    border-radius: 0.5rem;
    z-index: -1;
    opacity: 0.3;
}

/* Hover effects */
.card:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Form styling */
input:focus, textarea:focus, select:focus {
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Button animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.btn-primary:active {
    transform: translateY(0);
}

/* Star rating */
.star-rating {
    display: inline-flex;
    gap: 0.25rem;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating label {
    cursor: pointer;
    font-size: 1.5em;
    transition: all 0.2s ease;
}

.star-rating label:hover,
.star-rating input[type="radio"]:checked ~ label {
    color: var(--gold);
    transform: scale(1.1);
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-top-color: var(--gold);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
