/* Relic Show Page Styles */
/* Matches the landing page design aesthetic */

.relic-show-page {
    padding: 8rem 2rem 5rem;
    position: relative;
    z-index: 2;
    min-height: 100vh;
}

.relic-show-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Back to Relics Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--sacred-white);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.back-link:hover {
    opacity: 1;
    color: var(--accent-gold);
    transform: translateX(-5px);
}

/* Relic Header with Title and Badge */
.relic-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(254, 254, 254, 0.03);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 20px;
}

.relic-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    text-transform: capitalize;
}

.relic-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-gold), #d97706);
    color: var(--primary-blue);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.relic-badge--small {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.relic-badge--pending {
    background: rgba(217, 119, 6, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
    box-shadow: none;
}

.relic-badge--approved {
    background: rgba(5, 150, 105, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: none;
}

.relic-badge--rejected {
    background: rgba(220, 38, 38, 0.2);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.3);
    box-shadow: none;
}

/* Main Content Layout */
.relic-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Image Section */
.relic-image-section {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.relic-image-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: url("../images/relic-9MR3wTo.png") no-repeat center;
    background-size: contain;
    opacity: 0.15;
    filter: sepia(100%) saturate(300%) brightness(95%) hue-rotate(345deg);
}

.relic-main-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 15px;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

/* Details Section */
.relic-details-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.relic-section {
    background: rgba(254, 254, 254, 0.03);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 15px;
    padding: 2rem;
}

.section-heading {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.section-heading a {
    color:var(--accent-gold);
}

.detail-item {
    margin-bottom: 1rem;
}

.detail-label {
    font-weight: 600;
    color: var(--sacred-white);
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    display: block;
}

.detail-value {
    color: rgba(254, 254, 254, 0.8);
    font-size: 1rem;
    line-height: 1.6;
}

.detail-value a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

.detail-value a:hover {
    color: var(--light-gold);
    text-decoration: underline;
}

/* Historical Significance Section */
.historical-section {
    background: rgba(254, 254, 254, 0.03);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.historical-section .section-heading {
    margin-bottom: 1rem;
}

.historical-text {
    color: rgba(254, 254, 254, 0.85);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Thumbnail Gallery */
.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
}

.thumbnail-item {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.thumbnail-item::before {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.thumbnail-item:hover {
    transform: scale(1.05);
    border-color: var(--accent-gold);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.2);
}

.thumbnail-item:hover::before {
    opacity: 1;
}

.thumbnail-item:hover img {
    opacity: 0.5;
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

/* Action Buttons */
.relic-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(245, 158, 11, 0.2);
}

.action-group {
    display: flex;
    gap: 1rem;
}

.btn-action {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid transparent;
}

.btn-outline {
    background: transparent;
    color: var(--sacred-white);
    border-color: rgba(245, 158, 11, 0.5);
}

.btn-outline:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.btn-primary-action {
    background: linear-gradient(135deg, var(--accent-gold), #d97706);
    color: var(--primary-blue);
}

.btn-primary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.btn-success-action {
    background: var(--success-green);
    color: var(--sacred-white);
}

.btn-success-action:hover {
    background: #047857;
    transform: translateY(-2px);
}

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

.btn-danger-action:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.status-pending {
    background: rgba(217, 119, 6, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-approved {
    background: rgba(5, 150, 105, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-rejected {
    background: rgba(220, 38, 38, 0.2);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

/* Rejection Reason */
.rejection-reason {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 10px;
}

.rejection-reason-label {
    font-weight: 600;
    color: #f87171;
    margin-bottom: 0.5rem;
    display: block;
}

.rejection-reason-text {
    color: rgba(254, 254, 254, 0.9);
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .relic-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .relic-show-page {
        padding: 6rem 1rem 3rem;
    }
    
    .relic-title {
        font-size: 2rem;
    }
    
    .relic-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .action-group {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .thumbnail-gallery {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

@media (max-width: 480px) {
    .relic-badge {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .btn-action {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}
