/* catches/static/catches/css/detail.css */
/* Complete Detail Page Styles with Social Sharing */

/* ==================== MAIN CONTAINER ==================== */
.detail-container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 20px;
}

.detail-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* ==================== PHOTO GALLERY ==================== */
.photo-gallery {
    position: relative;
    background: #000;
}

.main-photo {
    width: 100%;
    height: 500px;
    object-fit: contain;
}

.photo-thumbnails {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    overflow-x: auto;
}

.thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px;
    border: 3px solid transparent;
    transition: all 0.3s;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #667eea;
}

/* ==================== DETAIL BODY ==================== */
.detail-body {
    padding: 40px;
}

.catch-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c5f7e;
    margin-bottom: 10px;
}

/* ==================== BADGE SYSTEM ==================== */
.badge-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 25px 0;
}

.detail-status-badge,
.detail-verification-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid;
    max-width: fit-content;
}

/* Status Badge Styles */
.status-badge-draft {
    background: #f8f9fa;
    color: #6c757d;
    border-color: #dee2e6;
}

.status-badge-pending {
    background: #fff3cd;
    color: #856404;
    border-color: #ffc107;
    animation: pulse-pending 2s ease-in-out infinite;
}

@keyframes pulse-pending {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(255, 193, 7, 0); }
}

.status-badge-approved {
    background: #d4edda;
    color: #155724;
    border-color: #28a745;
}

.status-badge-rejected {
    background: #f8d7da;
    color: #721c24;
    border-color: #dc3545;
}

.status-badge-waiting_info {
    background: #e3f2fd;
    color: #1565c0;
    border-color: #2196F3;
}

/* Verification Badge Styles */
.badge-personal-log {
    background: #fff8e1;
    color: #f57c00;
    border-color: #ffb74d;
}

.badge-trophy-eligible {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #e65100;
    border-color: #ff9800;
    font-weight: 800;
}

.badge-pending-verification {
    background: #e1f5fe;
    color: #01579b;
    border-color: #03a9f4;
    animation: pulse-trophy 2s ease-in-out infinite;
}

@keyframes pulse-trophy {
    0%, 100% { box-shadow: 0 0 0 0 rgba(3, 169, 244, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(3, 169, 244, 0); }
}

.badge-verified {
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
    color: #1b5e20;
    border-color: #4caf50;
    font-weight: 800;
}

.badge-verification-rejected {
    background: #ffebee;
    color: #b71c1c;
    border-color: #ef5350;
}

/* ==================== INFO GRID ==================== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.info-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.info-label {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.info-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c5f7e;
}

.info-source {
    font-size: 0.85rem;
    margin-top: 5px;
}

.source-verified {
    color: #28a745;
    font-weight: 600;
}

.source-manual {
    color: #6c757d;
}

/* ==================== STORY SECTION ==================== */
.story-section {
    margin: 30px 0;
    padding: 25px;
    background: #e3f2fd;
    border-radius: 10px;
}

/* ==================== VERIFICATION INFO BOX ==================== */
.verification-info-box {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left: 4px solid #4caf50;
    border-radius: 8px;
}

.verification-info-box.personal-log {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #fff8e1 0%, #ffe0b2 100%);
}

/* ==================== SOCIAL SHARE BUTTONS ==================== */
.top-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.social-share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Keep consistent button style on ALL devices */
/* Circular icon-only buttons on ALL devices */
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 12px;
    width: 48px;
    height: 48px;
    border: 2px solid #2c5f7e;
    background: white;
    color: #2c5f7e;
    border-radius: 50%;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(44, 95, 126, 0.1);
}

/* Hide button text, show only icons */
.share-btn span {
    display: none;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 95, 126, 0.2);
}

.share-btn svg {
    flex-shrink: 0;
}

/* Facebook */
.share-btn-facebook {
    border-color: #1877f2;
    color: #1877f2;
}

.share-btn-facebook:hover {
    background: #1877f2;
    color: white;
}

/* Instagram */
.share-btn-instagram {
    border-color: #E4405F;
    color: #E4405F;
}

.share-btn-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: white;
    border-color: #E4405F;
}

/* TikTok */
.share-btn-tiktok {
    border-color: #000;
    color: #000;
}

.share-btn-tiktok:hover {
    background: #000;
    color: white;
}

/* Copy Link */
.share-btn-copy {
    border-color: #f96733;
    color: #f96733;
}

.share-btn-copy:hover {
    background: #f96733;
    color: white;
}

/* ==================== SHARE MODAL ==================== */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.share-modal-content {
    position: relative;
    background: white;
    border-radius: 15px;
    max-width: 550px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid #e9ecef;
}

.share-modal-header h3 {
    margin: 0;
    color: #2c5f7e;
    font-size: 1.5rem;
}

.share-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-modal-close:hover {
    color: #333;
}

.share-modal-body {
    padding: 30px;
}

/* ==================== MOBILE RESPONSIVE ==================== */
@media (max-width: 768px) {
    .main-photo {
        object-fit: cover;
        height: 600px;
    }
    
    .badge-container {
        gap: 10px;
    }
    
    .top-actions-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .social-share-buttons {
        justify-content: center;
    }
    
    /* Keep same button style on mobile - just slightly smaller */
    
    .share-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .share-modal-header {
        padding: 20px;
    }
    
    .share-modal-body {
        padding: 20px;
    }
    
    .detail-body {
        padding: 20px;
    }
    
    .catch-title {
        font-size: 2rem;
    }
}

/* ==================== TABLET RESPONSIVE ==================== */

/* ==================== SMALL MOBILE RESPONSIVE ==================== */
@media (max-width: 480px) {
    .detail-container {
        margin: 30px auto;
        padding: 0 10px;
    }
    
}

.photo-container {
    position: relative;
    overflow: hidden;
}

.catch-badge-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 120px;
    height: 120px;
    z-index: 10;
    pointer-events: none;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    animation: badge-float 3s ease-in-out infinite;
}

.catch-badge-overlay img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes badge-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.catch-badge-overlay.legendary {
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.9))
            drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    animation: badge-float 3s ease-in-out infinite,
               legendary-badge-glow 2s ease-in-out infinite;
}

@keyframes legendary-badge-glow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.7))
                drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 35px rgba(255, 215, 0, 1))
                drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    }
}
