/* Magazine Preview Modal Styles */

/* Modal Overlay */
.magazine-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.magazine-preview-overlay.modal-open {
    opacity: 1;
    visibility: visible;
}

.magazine-preview-overlay.modal-closing {
    opacity: 0;
    visibility: hidden;
}

/* Modal Content */
.magazine-preview-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 20px;
    max-width: 1000px;
    width: 100%;
    position: relative;
    animation: magazineSlideIn 0.5s ease-out;
    border: 3px solid #FF6B35;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.7),
        0 0 150px rgba(255, 107, 53, 0.3),
        inset 0 0 50px rgba(255, 230, 109, 0.05);
    overflow: hidden;
}

@keyframes magazineSlideIn {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Close Button */
.preview-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #DC143C;
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-close-btn:hover {
    background: #FF6B35;
    transform: rotate(90deg) scale(1.1);
}

/* Magazine Display */
.magazine-display {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    padding: 30px;
}

/* Cover Section */
.cover-section {
    position: relative;
}

.cover-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    background: #000;
}

/* Cover Download Button Overlay */
.cover-download-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #FF6B35 0%, #FFE66D 100%);
    color: #1a1a1a;
    border: 3px solid white;
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.cover-download-btn:hover {
    transform: scale(1.1) rotate(-2deg);
    background: linear-gradient(135deg, #FFE66D 0%, #4ECDC4 100%);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.download-icon {
    font-size: 24px;
}

.download-text {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.download-size {
    font-size: 10px;
    opacity: 0.8;
}

/* Magazine Cover Image */
.magazine-cover {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* Cover Badges */
.cover-badges {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.badge {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge.new {
    background: linear-gradient(135deg, #4ECDC4, #44A5A0);
    animation: badgePulse 2s infinite;
}

.badge.hot {
    background: linear-gradient(135deg, #FF6B35, #DC143C);
}

.badge.pages {
    background: rgba(255, 230, 109, 0.9);
    color: #1a1a1a;
}

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

/* Info Section */
.info-section {
    color: white;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.magazine-title {
    font-size: 32px;
    font-weight: bold;
    color: #FFE66D;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.magazine-subtitle {
    font-size: 18px;
    color: #4ECDC4;
    font-style: italic;
    margin: 0;
}

.magazine-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.meta-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    color: #B0BEC5;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.magazine-description {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #FF6B35;
}

.magazine-description h3 {
    color: #FFE66D;
    font-size: 18px;
    margin: 0 0 10px 0;
}

.magazine-description p {
    color: #E0E0E0;
    line-height: 1.6;
    margin: 0;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    min-width: 150px;
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.action-btn.primary {
    background: linear-gradient(135deg, #4ECDC4, #44A5A0);
    color: white;
}

.action-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(78, 205, 196, 0.4);
}

.action-btn.secondary {
    background: linear-gradient(135deg, #FF6B35, #DC143C);
    color: white;
}

.action-btn.secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4);
}

.action-btn.fun {
    background: linear-gradient(135deg, #FFE66D, #FFC107);
    color: #1a1a1a;
}

.action-btn.fun:hover {
    transform: translateY(-3px) rotate(360deg);
    box-shadow: 0 10px 25px rgba(255, 230, 109, 0.4);
}

/* Warning Label */
.warning-label {
    background: rgba(220, 20, 60, 0.1);
    border: 2px dashed #DC143C;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.warning-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.warning-label p {
    margin: 0;
    color: #FFB6C1;
    font-size: 13px;
    line-height: 1.5;
}

/* Fun Facts */
.fun-facts {
    background: rgba(255, 230, 109, 0.05);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(255, 230, 109, 0.2);
}

.fun-facts h4 {
    color: #FFE66D;
    font-size: 16px;
    margin: 0 0 10px 0;
}

.fun-facts ul {
    margin: 0;
    padding-left: 20px;
    color: #B0BEC5;
    font-size: 13px;
    line-height: 1.8;
}

.fun-facts li {
    margin-bottom: 5px;
}

/* Preview Footer */
.preview-footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    text-align: center;
    border-top: 2px solid rgba(255, 107, 53, 0.3);
}

.preview-footer p {
    margin: 0;
    color: #B0BEC5;
    font-size: 14px;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-icon {
    font-size: 20px;
}

/* Download Animation */
.magazine-preview-content.downloading {
    animation: downloadShake 0.5s ease;
}

@keyframes downloadShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Download Success Message */
.download-success {
    position: fixed;
    top: 50px;
    right: -400px;
    background: linear-gradient(135deg, #28A745, #20C997);
    color: white;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10002;
    transition: all 0.5s ease;
}

.download-success.show {
    right: 20px;
}

.download-success.hide {
    right: -400px;
    opacity: 0;
}

.success-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.success-icon {
    font-size: 32px;
}

.success-text {
    font-size: 16px;
    font-weight: bold;
}

.success-subtext {
    font-size: 12px;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .magazine-display {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .cover-download-btn {
        padding: 10px 15px;
        font-size: 12px;
    }

    .magazine-title {
        font-size: 24px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .magazine-preview-content {
        border-radius: 10px;
    }

    .preview-close-btn {
        width: 35px;
        height: 35px;
        font-size: 24px;
    }

    .cover-download-btn {
        top: 10px;
        left: 10px;
        padding: 8px 12px;
    }

    .download-icon {
        font-size: 20px;
    }

    .magazine-title {
        font-size: 20px;
    }

    .magazine-subtitle {
        font-size: 14px;
    }
}