/* NOSTARVE Project Frontend Styles */

/* This file is loaded specifically for single project pages */
/* Main styles are in project.css, this is for additional frontend-specific styles */

.download-status {
    margin-top: 1rem;
    padding: 12px;
    border-radius: 6px;
    display: none;
    text-align: center;
    font-weight: 500;
}

.download-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.download-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.download-status.loading {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    display: block;
}

/* Form validation errors */
input.error {
    border-color: #dc3545 !important;
}

.validation-error {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Loading spinner */
.download-btn.loading::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Download icon animation */
.download-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.download-btn:hover .download-icon {
    transform: translateY(2px);
}

/* Modal animations */
.project-modal {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    animation: slideDown 0.3s ease;
}

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

/* Print styles for better PDF preview */
@media print {
    .project-download-section,
    .download-btn,
    .project-modal,
    .site-header,
    .site-footer {
        display: none !important;
    }
}
