/* Ketto-Style Campaign Detail Page CSS */

/* Campaign Detail Page Styles */
.campaign-detail-page {
    background: #f8f9fa;
    min-height: 100vh;
}

/* Campaign Header */
.campaign-header-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: white;
}

.campaign-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Campaign Content */


/* Image Gallery */
.campaign-images {
    margin-bottom: 2rem;
}

.main-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.campaign-main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Campaign Story */
.campaign-story {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.campaign-story h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 0;
    border-bottom: 3px solid #3498db;
    padding-bottom: 0.5rem;
}

.story-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

.health-details {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    border-left: 4px solid #3498db;
}

.health-details h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.health-details p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/* Donation Sidebar */
.donation-sidebar {
    position: sticky;
    top: 2rem;
}

/* Funding Card */
.funding-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}

.funding-amount h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #27ae60;
    margin: 0;
}

.funding-amount span {
    color: #666;
    font-size: 1rem;
}

/* Progress Bar */
.progress-container {
    margin: 1.5rem 0;
}

.progress-bar {
    background: #e9ecef;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    height: 100%;
    border-radius: 6px;
    transition: width 0.8s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    text-align: center;
    font-weight: 600;
    color: #27ae60;
    margin-top: 0.5rem;
}

/* Funding Stats */
.funding-stats {
    display: flex;
    justify-content: space-between;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat {
    text-align: center;
}

.stat .number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.stat .label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Contribute Button */
.btn-contribute-main {
    width: 100%;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 1.5rem 0;
}

.btn-contribute-main:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

.btn-contribute-main i {
    margin-right: 0.5rem;
}

/* Share Section */
.share-section {
    border-top: 1px solid #e9ecef;
    padding-top: 1.5rem;
}

.share-section h4 {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.share-btn.facebook {
    background: #3b5998;
}

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

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

.share-btn.copy {
    background: #6c757d;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

/* Recent Supporters */
.recent-supporters {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.recent-supporters h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.supporter-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.supporter {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.supporter:hover {
    background: #e9ecef;
}

.supporter img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.supporter-info {
    flex: 1;
}

.supporter-info .name {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.supporter-info .amount {
    display: block;
    color: #27ae60;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Donation Modal */
.donation-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.close {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 2rem;
}

/* Amount Selection */
.amount-selection {
    margin-bottom: 2rem;
}

.amount-selection h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.amount-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.amount-btn {
    padding: 1rem;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #2c3e50;
}

.amount-btn:hover,
.amount-btn.active {
    border-color: #3498db;
    background: #3498db;
    color: white;
    transform: translateY(-2px);
}

#donation-amount {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#donation-amount:focus {
    outline: none;
    border-color: #3498db;
}

/* Donor Info */
.donor-info {
    margin-bottom: 2rem;
}

.donor-info h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.donor-info input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.donor-info input:focus {
    outline: none;
    border-color: #3498db;
}

/* Donate Button */
.btn-donate {
    width: 100%;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-donate:hover {
    background: linear-gradient(135deg, #229954, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
}

.btn-donate i {
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .campaign-main-title {
        font-size: 1.8rem;
    }
    
    .campaign-content {
        margin-top: 1rem;
    }
    
    .campaign-story {
        padding: 1.5rem;
    }
    
    .funding-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .funding-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
    
    .amount-buttons {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .campaign-header-section {
        padding: 1.5rem 0;
    }
    
    .campaign-main-title {
        font-size: 1.5rem;
    }
    
    .funding-amount h3 {
        font-size: 1.8rem;
    }
    
    .stat .number {
        font-size: 1.2rem;
    }
}

/* Additional Ketto-style enhancements */
.campaign-detail-page .container {
    max-width: 1200px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
.campaign-main-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Focus states for accessibility */
.btn-contribute-main:focus,
.btn-donate:focus,
.amount-btn:focus {
    outline: 3px solid rgba(52, 152, 219, 0.3);
    outline-offset: 2px;
}

/* Hover effects for cards */
.funding-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.recent-supporters:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}