/* House of Trust Character Management System - Main Styles */

/* CSS Variables */
:root {
    --fantasy-gold: #D4AF37;
    --fantasy-bronze: #CD7F32;
    --fantasy-copper: #B87333;
    --fantasy-silver: #C0C0C0;
    --fantasy-dark: #2C1810;
    --fantasy-light: #F5DEB3;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    line-height: 1.2;
}

.font-fantasy {
    font-family: 'Cinzel', serif;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--fantasy-dark) 0%, var(--fantasy-bronze) 100%);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    background: var(--fantasy-gold);
    color: var(--fantasy-dark);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.logo-text h1 {
    color: var(--fantasy-gold);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.logo-text p {
    color: var(--fantasy-light);
    font-size: 0.875rem;
    opacity: 0.8;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--fantasy-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
    min-height: 44px; /* Minimum touch target size */
    display: flex;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.nav-link:hover,
.nav-link.active {
    background: var(--fantasy-gold);
    color: var(--fantasy-dark);
}

/* Main Content */
.main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 3rem;
    color: var(--fantasy-dark);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Search Section */
.search-section {
    background: var(--white);
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.search-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: end;
}

.search-group {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--fantasy-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.search-button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--fantasy-gold);
    border: none;
    border-radius: 0.375rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background: var(--fantasy-bronze);
}

.filter-group {
    display: flex;
    gap: 0.5rem;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.5rem;
    font-size: 1rem;
    background: var(--white);
    min-width: 150px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--fantasy-gold);
}

.filter-button {
    background: var(--fantasy-bronze);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.filter-button:hover {
    background: var(--fantasy-copper);
}

/* Characters Section */
.characters-section {
    margin-bottom: 2rem;
}

.results-info {
    margin-bottom: 1.5rem;
    color: var(--gray-600);
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.character-card {
    background: var(--white);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.character-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--fantasy-gold);
}

.character-link {
    text-decoration: none;
    color: inherit;
    display: block;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.character-image {
    position: relative;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--fantasy-bronze) 0%, var(--fantasy-gold) 100%);
    padding: 0.25rem;
}

.character-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.75rem;
}

.character-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--fantasy-bronze) 0%, var(--fantasy-gold) 100%);
    color: var(--white);
    font-size: 3rem;
    font-weight: bold;
    border-radius: 0.75rem;
}

.shapeshift-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--fantasy-gold);
    color: var(--fantasy-dark);
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow);
}

.character-info {
    padding: 1.5rem;
}

.character-name {
    font-size: 1.25rem;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.character-card:hover .character-name {
    color: var(--fantasy-bronze);
}

/* Special title effects for different colors */
.character-title[style*="#8B5CF6"], /* Purple */
.character-title[style*="#7C3AED"] {
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.9) 0%, 
        rgba(124, 58, 237, 0.9) 50%, 
        rgba(109, 40, 217, 0.9) 100%) !important;
    box-shadow: 
        0 4px 8px rgba(139, 92, 246, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.character-title[style*="#CD7F32"], /* Bronze */
.character-title[style*="#B8860B"] {
    background: linear-gradient(135deg, 
        rgba(205, 127, 50, 0.9) 0%, 
        rgba(184, 134, 11, 0.9) 50%, 
        rgba(160, 120, 0, 0.9) 100%) !important;
    box-shadow: 
        0 4px 8px rgba(205, 127, 50, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.character-title[style*="#16A34A"], /* Green */
.character-title[style*="#15803D"] {
    background: linear-gradient(135deg, 
        rgba(22, 163, 74, 0.9) 0%, 
        rgba(21, 128, 61, 0.9) 50%, 
        rgba(20, 83, 45, 0.9) 100%) !important;
    box-shadow: 
        0 4px 8px rgba(22, 163, 74, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.character-title[style*="#0EA5E9"], /* Blue */
.character-title[style*="#0284C7"] {
    background: linear-gradient(135deg, 
        rgba(14, 165, 233, 0.9) 0%, 
        rgba(2, 132, 199, 0.9) 50%, 
        rgba(3, 105, 161, 0.9) 100%) !important;
    box-shadow: 
        0 4px 8px rgba(14, 165, 233, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.character-title[style*="#DC2626"], /* Red */
.character-title[style*="#B91C1C"] {
    background: linear-gradient(135deg, 
        rgba(220, 38, 38, 0.9) 0%, 
        rgba(185, 28, 28, 0.9) 50%, 
        rgba(153, 27, 27, 0.9) 100%) !important;
    box-shadow: 
        0 4px 8px rgba(220, 38, 38, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.character-details {
    margin-bottom: 1rem;
}

.character-details p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

.character-race {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.character-bio {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.5;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-500);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--gray-600);
}

/* Footer */
.footer {
    background: var(--fantasy-dark);
    color: var(--fantasy-light);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo h3 {
    color: var(--fantasy-gold);
    margin-bottom: 0.25rem;
}

.footer-logo p {
    font-size: 0.875rem;
    opacity: 0.8;
}

.footer-text {
    text-align: right;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .characters-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .logo {
        gap: 0.75rem;
    }
    
    .logo-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .logo-text p {
        font-size: 0.875rem;
    }
    
    .nav {
        gap: 1.5rem;
        justify-content: center;
    }
    
    .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 2rem 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .search-section {
        padding: 1.5rem 0;
    }
    
    .search-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-group {
        min-width: auto;
        width: 100%;
    }
    
    .search-input {
        font-size: 1rem;
        padding: 0.875rem 1rem;
    }
    
    .search-button {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }
    
    .filter-group {
        width: 100%;
        display: flex;
        gap: 0.5rem;
    }
    
    .filter-select {
        flex: 1;
        padding: 0.875rem;
        font-size: 1rem;
    }
    
    .filter-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .characters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .character-card {
        margin-bottom: 0;
    }
    
    .character-image {
        height: 200px;
    }
    
    .character-info {
        padding: 1rem;
    }
    
    .character-name {
        font-size: 1.1rem;
    }
    
    .character-details {
        gap: 0.25rem;
    }
    
    .character-details p {
        font-size: 0.85rem;
    }
    
    .character-bio {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .footer {
        padding: 2rem 0;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-text {
        text-align: center;
    }
    
    /* Character Detail Page Mobile Styles */
    .character-detail-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .character-image-large {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .character-details-large {
        width: 100%;
    }
    
    .character-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tab-button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .gallery-item {
        margin-bottom: 0;
    }
    
    .shapeshift-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1rem;
    }
    
    .shapeshift-item {
        margin-bottom: 0;
    }
    
    /* Admin Dashboard Mobile Styles */
    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .dashboard-actions {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .action-card {
        padding: 1.5rem;
    }
    
    .action-card h3 {
        font-size: 1.1rem;
    }
    
    .action-card p {
        font-size: 0.9rem;
    }
    
    .characters-table {
        overflow-x: auto;
    }
    
    .table {
        min-width: 600px;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    .btn-sm {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
    
    /* Form Mobile Styles */
    .form-container {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1rem;
    }
    
    .image-preview {
        text-align: center;
    }
    
    .image-preview img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .header-content {
        padding: 0.75rem 0;
    }
    
    .logo-icon {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
    
    .logo-text h1 {
        font-size: 1.25rem;
    }
    
    .logo-text p {
        font-size: 0.75rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .nav-link {
        padding: 0.375rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .hero {
        padding: 1.5rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .search-section {
        padding: 1rem 0;
    }
    
    .search-input {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .search-button {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .filter-select {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .filter-button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .characters-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .character-image {
        height: 180px;
    }
    
    .character-info {
        padding: 0.75rem;
    }
    
    .character-name {
        font-size: 1rem;
    }
    
    .character-details p {
        font-size: 0.8rem;
    }
    
    .character-bio {
        font-size: 0.85rem;
    }
    
    .footer {
        padding: 1.5rem 0;
    }
    
    .footer-content {
        gap: 1rem;
    }
    
    .footer-logo {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-logo h3 {
        font-size: 1.1rem;
    }
    
    .footer-logo p {
        font-size: 0.8rem;
    }
    
    .footer-text {
        font-size: 0.8rem;
    }
    
    /* Character Detail Page Small Mobile */
    .character-image-large {
        max-width: 250px;
    }
    
    .character-details-large h1 {
        font-size: 1.5rem;
    }
    
    .character-details-large h2 {
        font-size: 1.25rem;
    }
    
    .character-details-large p {
        font-size: 0.9rem;
    }
    
    .tab-button {
        padding: 0.625rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .shapeshift-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    /* Admin Small Mobile */
    .form-container {
        padding: 1rem;
    }
    
    .action-card {
        padding: 1rem;
    }
    
    .action-card h3 {
        font-size: 1rem;
    }
    
    .action-card p {
        font-size: 0.85rem;
    }
    
    .table th,
    .table td {
        padding: 0.375rem;
        font-size: 0.8rem;
    }
    
    .btn {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 0.85rem;
    }
    
    .character-image {
        height: 160px;
    }
    
    .character-info {
        padding: 0.5rem;
    }
    
    .character-name {
        font-size: 0.95rem;
    }
    
    .character-details p {
        font-size: 0.75rem;
    }
    
    .character-bio {
        font-size: 0.8rem;
    }
    
    .footer-logo h3 {
        font-size: 1rem;
    }
    
    .footer-logo p {
        font-size: 0.75rem;
    }
    
    .footer-text {
        font-size: 0.75rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    border-top-color: var(--fantasy-gold);
    animation: spin 1s ease-in-out infinite;
}

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

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }

.hidden { display: none; }
.visible { display: block; }

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    min-height: 44px; /* Minimum touch target size */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--fantasy-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px; /* Minimum touch target size */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn-primary {
    background: var(--fantasy-gold);
    color: var(--fantasy-dark);
}

.btn-primary:hover {
    background: var(--fantasy-bronze);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-danger {
    background: #dc2626;
    color: var(--white);
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-fantasy {
    background: linear-gradient(135deg, var(--fantasy-gold) 0%, var(--fantasy-bronze) 100%);
    color: var(--fantasy-dark);
    border: 2px solid var(--fantasy-gold);
}

.btn-fantasy:hover {
    background: linear-gradient(135deg, var(--fantasy-bronze) 0%, var(--fantasy-copper) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.3);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Alert Styles */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* Character Detail Page Styles */
.character-header {
    background: var(--white);
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Name and Title Row */
.character-name-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--gray-200);
}

.character-name-title-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.character-name-large {
    font-size: 2.5rem;
    color: var(--fantasy-dark);
    margin: 0;
}

/* Content Row */
.character-content-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

/* Image Column */
.character-image-column {
    display: flex;
    align-items: center;
    justify-content: center;
}

.character-image-large {
    width: 100%;
    height: 100%;
    min-height: 20rem;
    background: linear-gradient(135deg, var(--fantasy-bronze) 0%, var(--fantasy-gold) 100%);
    border-radius: 1rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.character-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.75rem;
}

.character-placeholder-large {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--fantasy-bronze) 0%, var(--fantasy-gold) 100%);
    color: var(--white);
    font-size: 4rem;
    font-weight: bold;
    border-radius: 0.75rem;
}

/* Details Column */
.character-details-column {
    display: flex;
    align-items: stretch;
}

.character-title-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(0, 0, 0, 0.1) 100%);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    align-self: center;
}

/* Animated title badge for overview page */
.character-title {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(0, 0, 0, 0.1) 100%);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.character-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.6s ease;
}

.character-card:hover .character-title::before {
    left: 100%;
}

.character-card:hover .character-title {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.2),
        0 3px 6px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Special title badge effects for different colors */
.character-title-badge[style*="#8B5CF6"], /* Purple */
.character-title-badge[style*="#7C3AED"] {
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.9) 0%, 
        rgba(124, 58, 237, 0.9) 50%, 
        rgba(109, 40, 217, 0.9) 100%) !important;
    box-shadow: 
        0 6px 12px rgba(139, 92, 246, 0.4),
        0 3px 6px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.character-title-badge[style*="#CD7F32"], /* Bronze */
.character-title-badge[style*="#B8860B"] {
    background: linear-gradient(135deg, 
        rgba(205, 127, 50, 0.9) 0%, 
        rgba(184, 134, 11, 0.9) 50%, 
        rgba(160, 120, 0, 0.9) 100%) !important;
    box-shadow: 
        0 6px 12px rgba(205, 127, 50, 0.4),
        0 3px 6px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.character-title-badge[style*="#16A34A"], /* Green */
.character-title-badge[style*="#15803D"] {
    background: linear-gradient(135deg, 
        rgba(22, 163, 74, 0.9) 0%, 
        rgba(21, 128, 61, 0.9) 50%, 
        rgba(20, 83, 45, 0.9) 100%) !important;
    box-shadow: 
        0 6px 12px rgba(22, 163, 74, 0.4),
        0 3px 6px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.character-title-badge[style*="#0EA5E9"], /* Blue */
.character-title-badge[style*="#0284C7"] {
    background: linear-gradient(135deg, 
        rgba(14, 165, 233, 0.9) 0%, 
        rgba(2, 132, 199, 0.9) 50%, 
        rgba(3, 105, 161, 0.9) 100%) !important;
    box-shadow: 
        0 6px 12px rgba(14, 165, 233, 0.4),
        0 3px 6px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.character-title-badge[style*="#DC2626"], /* Red */
.character-title-badge[style*="#B91C1C"] {
    background: linear-gradient(135deg, 
        rgba(220, 38, 38, 0.9) 0%, 
        rgba(185, 28, 28, 0.9) 50%, 
        rgba(153, 27, 27, 0.9) 100%) !important;
    box-shadow: 
        0 6px 12px rgba(220, 38, 38, 0.4),
        0 3px 6px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.character-badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.admin-actions {
    margin-bottom: 1.5rem;
}

.admin-edit-btn {
    background: linear-gradient(135deg, var(--fantasy-gold) 0%, var(--fantasy-bronze) 100%);
    color: var(--fantasy-dark);
    border: 2px solid var(--fantasy-gold);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(212, 175, 55, 0.2);
}

.admin-edit-btn:hover {
    background: linear-gradient(135deg, var(--fantasy-bronze) 0%, var(--fantasy-copper) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.3);
    color: var(--fantasy-dark);
    text-decoration: none;
}

.race-badge {
    background: var(--fantasy-gold);
    color: var(--fantasy-dark);
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.shapeshift-badge-large {
    background: #8b5cf6;
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.character-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

.stat-value {
    font-size: 1rem;
    color: var(--gray-800);
    font-weight: 600;
}

.character-bio-large h3 {
    font-size: 1.25rem;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
}

.character-bio-large p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* Markdown Content Styles */
.markdown-content {
    color: var(--gray-600);
    line-height: 1.7;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
    color: var(--fantasy-dark);
    margin: 1.5rem 0 1rem 0;
    font-family: 'Cinzel', serif;
    font-weight: 600;
}

.markdown-content h1 {
    font-size: 1.75rem;
    border-bottom: 2px solid var(--fantasy-gold);
    padding-bottom: 0.5rem;
}

.markdown-content h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid var(--gray-300);
    padding-bottom: 0.25rem;
}

.markdown-content h3 {
    font-size: 1.25rem;
}

.markdown-content strong {
    color: var(--gray-800);
    font-weight: 600;
}

.markdown-content em {
    font-style: italic;
    color: var(--gray-700);
}

.markdown-content del {
    text-decoration: line-through;
    color: var(--gray-500);
}

.markdown-content code {
    background: var(--gray-100);
    color: var(--gray-800);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.markdown-content pre {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.markdown-content pre code {
    background: none;
    padding: 0;
    border-radius: 0;
}

.markdown-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.markdown-content li {
    margin: 0.5rem 0;
    color: var(--gray-600);
}

.markdown-content blockquote {
    border-left: 4px solid var(--fantasy-gold);
    background: var(--gray-50);
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: var(--gray-700);
}

.markdown-content a {
    color: var(--fantasy-bronze);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.markdown-content a:hover {
    color: var(--fantasy-gold);
    border-bottom-color: var(--fantasy-gold);
}

/* Markdown Editor Toolbar Styles */
.markdown-editor {
    border: 2px solid var(--gray-200);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.markdown-editor:focus-within {
    border-color: var(--fantasy-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    flex-wrap: wrap;
}

.toolbar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--gray-300);
    background: var(--white);
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
}

.toolbar-btn:hover {
    background: var(--fantasy-gold);
    border-color: var(--fantasy-gold);
    color: var(--fantasy-dark);
    transform: translateY(-1px);
}

.toolbar-btn:active {
    transform: translateY(0);
    background: var(--fantasy-bronze);
}

.toolbar-separator {
    width: 1px;
    height: 1.5rem;
    background: var(--gray-300);
    margin: 0 0.25rem;
}

.markdown-textarea {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    resize: vertical;
    min-height: 120px;
}

.markdown-textarea:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Responsive toolbar */
@media (max-width: 768px) {
    .editor-toolbar {
        gap: 0.125rem;
        padding: 0.5rem;
    }
    
    .toolbar-btn {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.75rem;
    }
    
    .toolbar-separator {
        height: 1.25rem;
        margin: 0 0.125rem;
    }
}

/* FAQ Styles */
.faq-section {
    margin: 3rem 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--fantasy-gold);
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: var(--gray-100);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.125rem;
    color: var(--fantasy-dark);
    font-family: 'Cinzel', serif;
    font-weight: 600;
    flex: 1;
    padding-right: 1rem;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--fantasy-gold);
    transition: transform 0.3s ease;
    min-width: 2rem;
    text-align: center;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.active {
    max-height: 1000px;
}

.faq-answer-content {
    padding: 1.5rem;
    background: var(--white);
}

.faq-answer-content .markdown-content {
    color: var(--gray-700);
    line-height: 1.7;
}

.faq-answer-content .markdown-content h1,
.faq-answer-content .markdown-content h2,
.faq-answer-content .markdown-content h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.faq-answer-content .markdown-content h1:first-child,
.faq-answer-content .markdown-content h2:first-child,
.faq-answer-content .markdown-content h3:first-child {
    margin-top: 0;
}

/* Admin Section */
.admin-section {
    margin: 3rem 0;
    text-align: center;
}

.admin-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.admin-actions .btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-actions .btn-primary {
    background: var(--fantasy-gold);
    color: var(--fantasy-dark);
    border: 2px solid var(--fantasy-gold);
}

.admin-actions .btn-primary:hover {
    background: var(--fantasy-bronze);
    border-color: var(--fantasy-bronze);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Character Details Card */
.character-details-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    padding: 1.5rem;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.character-details-card h3 {
    font-size: 1.125rem;
    color: var(--fantasy-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.detail-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

.detail-value {
    font-size: 0.875rem;
    color: var(--gray-800);
    font-weight: 600;
}

/* Content Cards */
.content-card {
    background: var(--white);
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, var(--fantasy-gold) 0%, var(--fantasy-bronze) 100%);
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--fantasy-gold);
}

.card-header h2 {
    color: var(--fantasy-dark);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-content {
    padding: 2rem;
}

.card-footer {
    background: var(--gray-50);
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

/* Tabs */
.tabs-section {
    background: var(--white);
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--gray-200);
}

.tab-link {
    padding: 1rem 2rem;
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-link:hover,
.tab-link.active {
    color: var(--fantasy-bronze);
    border-bottom-color: var(--fantasy-gold);
    background: var(--gray-50);
}

.tab-content {
    padding: 2rem;
}

/* Overview Content */
.overview-content {
    max-width: none;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.overview-card {
    background: var(--gray-50);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.overview-card h3 {
    font-size: 1.25rem;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.detail-list,
.stats-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-item,
.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.detail-item:last-child,
.stat-item:last-child {
    border-bottom: none;
}

.detail-label,
.stat-label {
    font-weight: 500;
    color: var(--gray-600);
}

.detail-value,
.stat-value {
    font-weight: 600;
    color: var(--gray-800);
}

/* Gallery Content */
.filter-form {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.875rem;
}

.filter-group select {
    padding: 0.5rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.5rem;
    background: var(--white);
    min-width: 150px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.gallery-item {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    border-color: var(--fantasy-gold);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.gallery-image {
    aspect-ratio: 1;
    background: var(--gray-100);
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-info {
    padding: 1rem;
}

.gallery-info h4 {
    font-size: 1rem;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
}

.gallery-characters {
    margin-top: 0.5rem;
}

.gallery-characters small {
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.4;
}

.gallery-form {
    margin-top: 0.25rem;
}

.gallery-form small {
    color: var(--gray-500);
    font-size: 0.75rem;
    font-style: italic;
}

/* Gallery Grid 4 columns */
.gallery-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .gallery-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Gallery Header Content */
.gallery-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    gap: 0.5rem;
    background: var(--gray-100);
    padding: 0.5rem;
    border-radius: 0.75rem;
    width: 100%;
    max-width: 600px;
}

.tab-button {
    flex: 1;
    padding: 1rem 1.5rem;
    background: transparent;
    color: var(--gray-600);
    text-decoration: none;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.tab-button:hover {
    background: var(--gray-200);
    color: var(--gray-800);
    transform: translateY(-1px);
}

.tab-button.active {
    background: var(--white);
    color: var(--gray-800);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.tab-button.active:hover {
    background: var(--white);
    transform: translateY(-1px);
}

.tab-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.tab-text {
    font-size: 0.95rem;
    font-weight: 600;
}

.tab-count {
    background: var(--gray-200);
    color: var(--gray-700);
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 1.5rem;
    text-align: center;
}

.tab-button.active .tab-count {
    background: var(--fantasy-gold);
    color: var(--fantasy-dark);
}

/* Gallery Tab Buttons (for character and form pages) */
.gallery-tab-button {
    flex: 1;
    padding: 1rem 1.5rem;
    background: transparent;
    color: var(--gray-600);
    text-decoration: none;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-tab-button:hover {
    background: var(--gray-200);
    color: var(--gray-800);
    transform: translateY(-1px);
}

.gallery-tab-button.active {
    background: var(--white);
    color: var(--gray-800);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.gallery-tab-button.active:hover {
    background: var(--white);
    transform: translateY(-1px);
}

.gallery-tab-button .tab-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.gallery-tab-button .tab-text {
    font-size: 0.95rem;
    font-weight: 600;
}

.gallery-tab-button .tab-count {
    background: var(--gray-200);
    color: var(--gray-700);
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 1.5rem;
    text-align: center;
}

.gallery-tab-button.active .tab-count {
    background: var(--fantasy-gold);
    color: var(--fantasy-dark);
}

/* Loading and Error States */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--fantasy-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Artist Section Styles */
.artist-section {
    margin-top: 2rem;
}

.artist-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.artist-details h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.75rem;
    color: var(--fantasy-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.artist-bio {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--gray-700);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.artist-bio p {
    margin-bottom: 1rem;
}

.artist-bio p:last-child {
    margin-bottom: 0;
}

.artist-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 0.75rem;
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--fantasy-gold);
    color: var(--fantasy-dark);
}

.social-link.twitter:hover {
    border-color: #1DA1F2;
    background: #f8fcff;
}

.social-link.instagram:hover {
    border-color: #E4405F;
    background: #fef7f7;
}

.social-link.deviantart:hover {
    border-color: #00E59B;
    background: #f0fffb;
}

.social-link.patreon:hover {
    border-color: #FF424D;
    background: #fff5f5;
}

.social-link.website:hover {
    border-color: var(--fantasy-gold);
    background: var(--fantasy-light);
}

.social-link.other:hover {
    border-color: var(--fantasy-bronze);
    background: #faf8f5;
}

.social-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.social-text {
    font-size: 0.875rem;
    white-space: nowrap;
}

/* Responsive Design for Artist Section */
@media (max-width: 768px) {
    .artist-details h3 {
        font-size: 1.5rem;
    }
    
    .artist-bio {
        font-size: 1rem;
        text-align: left;
    }
    
    .artist-links {
        flex-direction: column;
        align-items: center;
    }
    
    .social-link {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .artist-links {
        gap: 0.75rem;
    }
    
    .social-link {
        padding: 0.625rem 1rem;
    }
    
    .social-text {
        font-size: 0.8rem;
    }
}

/* Updated Artists Section Styles for Multiple Artists */
.artists-section {
    margin-top: 2rem;
}

.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.artist-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.artist-card:hover {
    border-color: var(--fantasy-gold);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Override single artist styles for multiple artists */
.artists-section .artist-details h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.75rem;
    color: var(--fantasy-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.artists-section .artist-bio {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--gray-700);
    text-align: center;
    margin-bottom: 1.5rem;
}

.artists-section .artist-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* Responsive Design for Multiple Artists */
@media (max-width: 768px) {
    .artists-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .artist-card {
        padding: 1.5rem;
    }
    
    .artists-section .artist-details h3 {
        font-size: 1.5rem;
    }
    
    .artists-section .artist-bio {
        font-size: 1rem;
        text-align: left;
    }
    
    .artists-section .artist-links {
        flex-direction: column;
        align-items: center;
    }
    
    .artists-section .social-link {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .artists-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .artist-card {
        padding: 1rem;
    }
}

/* Artist Badge Styles */
.artist-badge {
    background: #fef3c7;
    color: #92400e;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.artist-badge:hover {
    background: #fde68a;
    color: #78350f;
    text-decoration: none;
}

.gallery-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Shapeshift Tab Styles */
.shapeshift-image-container {
    width: 100%;
}

.shapeshift-tabs {
    display: flex;
    background: var(--gray-100);
    border-radius: 0.75rem 0.75rem 0 0;
    overflow: hidden;
    margin-bottom: 0;
}

.tab-button {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-button:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

.tab-button.active {
    background: var(--white);
    color: var(--fantasy-bronze);
    font-weight: 600;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--fantasy-gold) 0%, var(--fantasy-bronze) 100%);
}

.tab-content {
    background: var(--white);
    border-radius: 0 0 0.75rem 0.75rem;
    overflow: hidden;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive tab styles */
@media (max-width: 768px) {
    .tab-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}

/* Rarity Badge Styles */
.rarity-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.rarity-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.rarity-mythical {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    color: white;
    border-color: #9333ea;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.rarity-mythical:hover {
    background: linear-gradient(135deg, #9333ea 0%, #db2777 100%);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

.rarity-normal {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    color: white;
    border-color: #4b5563;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.rarity-normal:hover {
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4);
}

.rarity-natural {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
    border-color: #059669;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.rarity-natural:hover {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Rarity badge positioning in different contexts */
.character-name-title-content .rarity-badge {
    margin-top: 0.75rem;
    margin-left: 0.5rem;
}

.shapeshift-info .rarity-badge {
    margin-top: 0.5rem;
    display: block;
    width: fit-content;
}

/* Responsive rarity badges */
@media (max-width: 768px) {
    .rarity-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
    
    .character-name-title-content .rarity-badge {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* Multiple rarity badges container */
.rarity-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.character-name-title-content .rarity-badges {
    margin-top: 0.5rem;
}

.shapeshift-info .rarity-badges {
    justify-content: center;
}

.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-state h3 {
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.error-state p {
    color: var(--gray-600);
}

/* Gallery Filters Section */
.gallery-filters-section {
    background: var(--gray-50);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--gray-200);
}

/* Filter Row Layout */
.filter-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: end;
}

@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .tab-navigation {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tab-button {
        justify-content: flex-start;
    }
}

.gallery-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.artwork-type-badge,
.piece-type-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.artwork-type-badge.artwork {
    background: #dbeafe;
    color: #1e40af;
}

.artwork-type-badge.ai_generated {
    background: #e9d5ff;
    color: #6b21a8;
}

.piece-type-badge.solo {
    background: #d1fae5;
    color: #065f46;
}

.piece-type-badge.group {
    background: #fed7aa;
    color: #9a3412;
}

.gallery-description {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* Shapeshift Content */
.shapeshift-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.shapeshift-item {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.shapeshift-link {
    text-decoration: none;
    color: inherit;
    display: block;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.shapeshift-item:hover {
    border-color: #8b5cf6;
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.shapeshift-image {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    overflow: hidden;
}

.shapeshift-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shapeshift-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
}

.shapeshift-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.shapeshift-info h4 {
    font-size: 1rem;
    color: var(--gray-800);
    margin: 0;
    text-align: center;
}

.shapeshift-info p {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* Responsive Design for Character Detail */
@media (max-width: 768px) {
    .character-name-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .character-name-title-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .character-name-large {
        font-size: 2rem;
    }
    
    .character-content-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .character-image-large {
        min-height: 16rem;
    }
    
    .tabs-nav {
        flex-direction: column;
    }
    
    .tab-link {
        text-align: center;
        border-bottom: none;
        border-right: 3px solid transparent;
    }
    
    .tab-link:hover,
    .tab-link.active {
        border-bottom: none;
        border-right-color: var(--fantasy-gold);
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid,
    .shapeshift-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .character-image-large {
        min-height: 14rem;
    }
    
    .character-name-large {
        font-size: 1.75rem;
    }
    
    .character-content-row {
        gap: 1rem;
    }
    
    .gallery-grid,
    .shapeshift-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-form {
        flex-direction: column;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.1s ease-out;
    cursor: default;
    user-select: none;
    touch-action: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.lightbox-image.zoomed {
    cursor: grab;
    transition: transform 0.05s ease-out;
}

.lightbox-image.zoomed:active {
    cursor: grabbing;
}

/* Touch device specific styles */
@media (hover: none) and (pointer: coarse) {
    .lightbox-image.zoomed {
        cursor: default;
    }
    
    .lightbox-image.zoomed:active {
        cursor: default;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    user-select: none;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 0.5rem;
    max-width: 80%;
}

.lightbox-caption h3 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    color: var(--fantasy-gold);
}

.lightbox-caption p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Zoom Controls */
.lightbox-zoom-controls {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
    z-index: 10000;
}

.lightbox-zoom-btn {
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    user-select: none;
}

.lightbox-zoom-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.lightbox-zoom-btn:active {
    transform: scale(0.95);
}

.lightbox-reset-btn {
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    border: none;
    border-radius: 25px;
    padding: 0 15px;
    height: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    user-select: none;
}

.lightbox-reset-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
}

.lightbox-reset-btn:active {
    transform: scale(0.95);
}

/* Clickable image styles */
.clickable-image {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-image:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        padding: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
    
    .lightbox-nav {
        font-size: 24px;
        width: 40px;
        height: 40px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-caption {
        bottom: 10px;
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .lightbox-zoom-controls {
        top: 10px;
        left: 10px;
        gap: 5px;
    }
    
    .lightbox-zoom-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .lightbox-reset-btn {
        height: 40px;
        padding: 0 12px;
        font-size: 12px;
    }
}

/* Age Verification Popup */
.age-verification-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.age-verification-popup.show {
    opacity: 1;
    visibility: visible;
}

.age-verification-content {
    background: var(--white);
    border-radius: 1rem;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.age-verification-popup.show .age-verification-content {
    transform: scale(1);
}

.age-verification-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.age-verification-content h2 {
    color: var(--gray-800);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.age-verification-content p {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 2rem 0;
}

.age-verification-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.age-verification-buttons .btn {
    min-width: 160px;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.age-verification-buttons .btn-primary {
    background: var(--fantasy-gold);
    color: var(--fantasy-dark);
    border: 2px solid var(--fantasy-gold);
}

.age-verification-buttons .btn-primary:hover {
    background: var(--fantasy-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.age-verification-buttons .btn-secondary {
    background: transparent;
    color: var(--gray-600);
    border: 2px solid var(--gray-300);
}

.age-verification-buttons .btn-secondary:hover {
    background: var(--gray-100);
    color: var(--gray-800);
    border-color: var(--gray-400);
    transform: translateY(-2px);
}

.age-verification-disclaimer {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin: 0;
    font-style: italic;
}

/* Responsive age verification */
@media (max-width: 768px) {
    .age-verification-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .age-verification-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    .age-verification-content h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .age-verification-content p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .age-verification-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .age-verification-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .age-verification-disclaimer {
        font-size: 0.8rem;
    }
}

/* Loading spinner for age verification */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--fantasy-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Artist Section Styles */
.artist-section {
    margin-top: 2rem;
}

.artist-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.artist-details h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.75rem;
    color: var(--fantasy-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.artist-bio {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--gray-700);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.artist-bio p {
    margin-bottom: 1rem;
}

.artist-bio p:last-child {
    margin-bottom: 0;
}

.artist-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 0.75rem;
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--fantasy-gold);
    color: var(--fantasy-dark);
}

.social-link.twitter:hover {
    border-color: #1DA1F2;
    background: #f8fcff;
}

.social-link.instagram:hover {
    border-color: #E4405F;
    background: #fef7f7;
}

.social-link.deviantart:hover {
    border-color: #00E59B;
    background: #f0fffb;
}

.social-link.patreon:hover {
    border-color: #FF424D;
    background: #fff5f5;
}

.social-link.website:hover {
    border-color: var(--fantasy-gold);
    background: var(--fantasy-light);
}

.social-link.other:hover {
    border-color: var(--fantasy-bronze);
    background: #faf8f5;
}

.social-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.social-text {
    font-size: 0.875rem;
    white-space: nowrap;
}

/* Responsive Design for Artist Section */
@media (max-width: 768px) {
    .artist-details h3 {
        font-size: 1.5rem;
    }
    
    .artist-bio {
        font-size: 1rem;
        text-align: left;
    }
    
    .artist-links {
        flex-direction: column;
        align-items: center;
    }
    
    .social-link {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .artist-links {
        gap: 0.75rem;
    }
    
    .social-link {
        padding: 0.625rem 1rem;
    }
    
    .social-text {
        font-size: 0.8rem;
    }
}

/* Updated Artists Section Styles for Multiple Artists */
.artists-section {
    margin-top: 2rem;
}

.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.artist-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.artist-card:hover {
    border-color: var(--fantasy-gold);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Override single artist styles for multiple artists */
.artists-section .artist-details h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.75rem;
    color: var(--fantasy-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.artists-section .artist-bio {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--gray-700);
    text-align: center;
    margin-bottom: 1.5rem;
}

.artists-section .artist-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* Responsive Design for Multiple Artists */
@media (max-width: 768px) {
    .artists-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .artist-card {
        padding: 1.5rem;
    }
    
    .artists-section .artist-details h3 {
        font-size: 1.5rem;
    }
    
    .artists-section .artist-bio {
        font-size: 1rem;
        text-align: left;
    }
    
    .artists-section .artist-links {
        flex-direction: column;
        align-items: center;
    }
    
    .artists-section .social-link {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .artists-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .artist-card {
        padding: 1rem;
    }
}

/* Artist Badge Styles */
.artist-badge {
    background: #fef3c7;
    color: #92400e;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.artist-badge:hover {
    background: #fde68a;
    color: #78350f;
    text-decoration: none;
}

.gallery-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Shapeshift Tab Styles */
.shapeshift-image-container {
    width: 100%;
}

.shapeshift-tabs {
    display: flex;
    background: var(--gray-100);
    border-radius: 0.75rem 0.75rem 0 0;
    overflow: hidden;
    margin-bottom: 0;
}

.tab-button {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-button:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

.tab-button.active {
    background: var(--white);
    color: var(--fantasy-bronze);
    font-weight: 600;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--fantasy-gold) 0%, var(--fantasy-bronze) 100%);
}

.tab-content {
    background: var(--white);
    border-radius: 0 0 0.75rem 0.75rem;
    overflow: hidden;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive tab styles */
@media (max-width: 768px) {
    .tab-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}

/* Rarity Badge Styles */
.rarity-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.rarity-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.rarity-mythical {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    color: white;
    border-color: #9333ea;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.rarity-mythical:hover {
    background: linear-gradient(135deg, #9333ea 0%, #db2777 100%);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

.rarity-normal {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    color: white;
    border-color: #4b5563;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.rarity-normal:hover {
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4);
}

.rarity-natural {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
    border-color: #059669;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.rarity-natural:hover {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Rarity badge positioning in different contexts */
.character-name-title-content .rarity-badge {
    margin-top: 0.75rem;
    margin-left: 0.5rem;
}

.shapeshift-info .rarity-badge {
    margin-top: 0.5rem;
    display: block;
    width: fit-content;
}

/* Responsive rarity badges */
@media (max-width: 768px) {
    .rarity-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
    
    .character-name-title-content .rarity-badge {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* Multiple rarity badges container */
.rarity-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.character-name-title-content .rarity-badges {
    margin-top: 0.5rem;
}

.shapeshift-info .rarity-badges {
    justify-content: center;
}
