/**
 * Detail Page Fixes - Additional Styles
 * Styles for fullscreen, share modal, notifications, and modern size comparison
 */

/* Fullscreen Overlay - Enhanced */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fullscreen-overlay.active {
    opacity: 1;
}

.fullscreen-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fullscreen-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10001;
}

.fullscreen-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.fullscreen-close {
    background: rgba(255, 107, 107, 0.3);
}

.fullscreen-close:hover {
    background: rgba(255, 107, 107, 0.5);
    transform: rotate(90deg) scale(1.1);
}

.fullscreen-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 80px 20px 20px;
    overflow: auto;
}

.fullscreen-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    cursor: default;
}

.fullscreen-image[style*="scale"] {
    cursor: move;
}

.fullscreen-caption {
    color: white;
    padding: 20px;
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    margin: 0 20px 20px;
}

/* Gallery Fullscreen Button */
.gallery-fullscreen-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(45, 80, 22, 0.8);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.gallery-main-image-container:hover .gallery-fullscreen-btn {
    opacity: 1;
}

.gallery-fullscreen-btn:hover {
    background: rgba(45, 80, 22, 1);
    transform: scale(1.1);
}

/* Gallery Main Image Container */
.gallery-main-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.gallery-main-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-main-image:hover {
    transform: scale(1.02);
}

/* Share Modal */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.share-modal-overlay.active {
    opacity: 1;
}

.share-modal {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.share-modal-overlay.active .share-modal {
    transform: scale(1);
}

.share-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.share-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #2d5016;
}

.share-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

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

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

.share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.share-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
}

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

.share-btn.facebook:hover {
    background: #0d65d9;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.twitter:hover {
    background: #0c8bd9;
}

.share-btn.pinterest {
    background: #e60023;
}

.share-btn.pinterest:hover {
    background: #c50019;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.whatsapp:hover {
    background: #1fb855;
}

.share-link-container {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.share-link-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #f8f9fa;
}

.share-copy-btn {
    padding: 10px 20px;
    background: #2d5016;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.share-copy-btn:hover {
    background: #4a7c2c;
    transform: translateY(-2px);
}

/* Copy Notification */
.copy-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.copy-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.copy-notification.success {
    border-left: 4px solid #28a745;
}

.copy-notification.error {
    border-left: 4px solid #dc3545;
}

.copy-notification i {
    font-size: 20px;
}

.copy-notification.success i {
    color: #28a745;
}

.copy-notification.error i {
    color: #dc3545;
}

/* Audio Player Enhancement */
#roar-button.playing {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    animation: pulse 1.5s infinite;
}

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

/* Modern Size Comparison - Completely Redesigned */
.size-comparison-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 0;
}

.modern-comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.comparison-card,
.comparison-card-current {
    background: white;
    border-radius: 16px;
    padding: 30px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.comparison-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.comparison-card-current {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c2c 100%);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(45, 80, 22, 0.3);
}

.comparison-card-current:hover {
    transform: scale(1.08) translateY(-5px);
}

.current-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.current-badge i {
    color: #ffd700;
}

.comparison-visual {
    height: 250px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.height-bar {
    width: 80px;
    border-radius: 40px 40px 0 0;
    position: relative;
    transition: all 0.5s ease;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15px;
}

.comparison-card:hover .height-bar {
    transform: scaleY(1.05);
}

.height-icon {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: float 3s ease-in-out infinite;
}

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

.comparison-info {
    text-align: center;
}

.comparison-info h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: inherit;
}

.comparison-card-current .comparison-info h4 {
    color: white;
}

.height-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 15px 0;
}

.height-value {
    font-size: 32px;
    font-weight: 800;
    color: #2d5016;
    line-height: 1;
}

.comparison-card-current .height-value {
    color: white;
}

.height-feet {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.comparison-card-current .height-feet {
    color: rgba(255, 255, 255, 0.8);
}

.difference-badge {
    display: inline-block;
    background: linear-gradient(135deg, #4ecdc4 0%, #44a3a0 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin: 10px 0;
    box-shadow: 0 2px 10px rgba(78, 205, 196, 0.3);
}

.comparison-card[data-type="larger"] .difference-badge {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.comparison-card[data-type="smaller"] .difference-badge {
    background: linear-gradient(135deg, #95e1d3 0%, #7dd3c0 100%);
    box-shadow: 0 2px 10px rgba(149, 225, 211, 0.3);
}

.description {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

.comparison-card-current .description {
    color: rgba(255, 255, 255, 0.9);
}

/* Comparison Legend */
.comparison-legend {
    background: white;
    border-radius: 16px;
    padding: 40px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.legend-item {
    padding: 20px;
}

.legend-item i {
    font-size: 32px;
    margin-bottom: 15px;
}

.legend-item h5 {
    font-size: 18px;
    font-weight: 700;
    color: #2d5016;
    margin-bottom: 10px;
}

.legend-item p {
    font-size: 14px;
    margin: 0;
}

/* Social Share Buttons Enhancement */
.social-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.social-share-buttons .btn {
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-share-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-share-buttons .btn-primary {
    background: #1877f2;
    border-color: #1877f2;
}

.social-share-buttons .btn-primary:hover {
    background: #0d65d9;
    border-color: #0d65d9;
}

.social-share-buttons .btn-info {
    background: #1da1f2;
    border-color: #1da1f2;
}

.social-share-buttons .btn-info:hover {
    background: #0c8bd9;
    border-color: #0c8bd9;
}

.social-share-buttons .btn-danger {
    background: #e60023;
    border-color: #e60023;
}

.social-share-buttons .btn-danger:hover {
    background: #c50019;
    border-color: #c50019;
}

.social-share-buttons .btn-success {
    background: #25d366;
    border-color: #25d366;
}

.social-share-buttons .btn-success:hover {
    background: #1fb855;
    border-color: #1fb855;
}

.social-share-buttons .btn-secondary {
    background: #6c757d;
    border-color: #6c757d;
}

.social-share-buttons .btn-secondary:hover {
    background: #5a6268;
    border-color: #5a6268;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-comparison-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .comparison-card-current {
        transform: scale(1);
    }
    
    .comparison-card-current:hover {
        transform: scale(1.02) translateY(-5px);
    }
    
    .fullscreen-caption {
        font-size: 14px;
        padding: 0 20px;
    }
    
    .share-buttons {
        grid-template-columns: 1fr;
    }
    
    .share-link-container {
        flex-direction: column;
    }
    
    .share-copy-btn {
        width: 100%;
    }
    
    .copy-notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
        font-size: 14px;
    }
    
    .social-share-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .social-share-buttons .btn {
        width: 100%;
    }
    
    .comparison-legend .row {
        gap: 20px;
    }
}

/* Animation for cards on load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comparison-card,
.comparison-card-current {
    animation: fadeInUp 0.6s ease forwards;
}

.comparison-card:nth-child(1) {
    animation-delay: 0.1s;
}

.comparison-card:nth-child(2),
.comparison-card-current:nth-child(2) {
    animation-delay: 0.2s;
}

.comparison-card:nth-child(3) {
    animation-delay: 0.3s;
}