/* Campaign Detail Page - Ketto Style */

.campaign-detail-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header Section */
.campaign-header-section {
    background: #f8f9fa;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    font-size: 14px;
    margin-bottom: 10px;
    color: #6c757d;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.campaign-main-title {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
}

/* Main Content */
.campaign-content {
    padding: 30px 0;
    max-width: 1200px;
}

/* Image Gallery */
.campaign-images {
    margin-bottom: 30px;
}

.main-image {
    margin-bottom: 15px;
}

.campaign-main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.image-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
}

.thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail.active {
    border-color: #28a745;
}

.thumbnail:hover {
    border-color: #007bff;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Campaign Story */
.campaign-story {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.campaign-story h2 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 2px solid #28a745;
    padding-bottom: 10px;
}

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

.story-details h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 25px 0 10px 0;
}

.support-breakdown {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.support-breakdown li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.support-breakdown li:last-child {
    border-bottom: none;
}

/* Fundraiser Details */
.fundraiser-details {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.fundraiser-details h2 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.detail-value {
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
}

.urgency-high {
    color: #dc3545 !important;
}

.urgency-medium {
    color: #ffc107 !important;
}

.urgency-low {
    color: #28a745 !important;
}

/* Campaign Updates */
.campaign-updates {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.campaign-updates h2 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

.update-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.update-item:last-child {
    border-bottom: none;
}

.update-date {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 5px;
}

.update-text {
    font-size: 14px;
    color: #555;
}

/* Donation Sidebar */
.donation-sidebar {
    position: sticky;
    top: 20px;
}

/* Funding Card */
.funding-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
}

.funding-amount {
    text-align: center;
    margin-bottom: 20px;
}

.amount-raised {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 5px;
}

.amount-label {
    font-size: 14px;
    color: #6c757d;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
}

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

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Funding Stats */
.funding-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    text-align: center;
}

.stat-item {
    flex: 1;
}

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

.stat-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Contribute Button */
.btn-contribute-main {
    width: 100%;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.btn-contribute-main:hover {
    background: linear-gradient(135deg, #218838, #1ea085);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

/* Share Section */
.share-section {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.share-section p {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 15px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 16px;
}

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

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

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

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

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

/* Recent Supporters */
.recent-supporters {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.recent-supporters h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.supporter-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f8f9fa;
}

.supporter-item:last-child {
    border-bottom: none;
}

.supporter-avatar {
    width: 40px;
    height: 40px;
    background: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.supporter-info {
    flex: 1;
}

.supporter-name {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2px;
}

.supporter-details {
    font-size: 12px;
    color: #6c757d;
}

.supporter-details .amount {
    color: #28a745;
    font-weight: 600;
}

.view-all-supporters {
    width: 100%;
    background: transparent;
    color: #007bff;
    border: 1px solid #007bff;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.view-all-supporters:hover {
    background: #007bff;
    color: white;
}

/* Trust & Safety */
.trust-safety {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.trust-safety h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: #555;
}

.trust-item i {
    color: #28a745;
    width: 16px;
}

/* Related Campaigns */
.related-campaigns-section {
    background: #f8f9fa;
    padding: 50px 0;
    margin-top: 50px;
}

.related-campaigns-section h2 {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 40px;
}

.related-campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.related-campaign-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.related-campaign-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.related-campaign-card .card-image {
    height: 200px;
    overflow: hidden;
}

.related-campaign-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-campaign-card:hover .card-image img {
    transform: scale(1.05);
}

.related-campaign-card .card-content {
    padding: 20px;
}

.related-campaign-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.related-campaign-card h4 a {
    color: #2c3e50;
    text-decoration: none;
}

.related-campaign-card h4 a:hover {
    color: #007bff;
}

.related-campaign-card .card-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.related-campaign-card .stat {
    text-align: center;
}

.related-campaign-card .stat .amount {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #28a745;
}

.related-campaign-card .stat .label {
    font-size: 12px;
    color: #6c757d;
}

.progress-bar-small {
    width: 100%;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-small .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 2px;
}

/* Donation Modal */
.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: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding: 15px 20px 0 0;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.modal-header {
    padding: 25px 25px 15px 25px;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #2c3e50;
}

.modal-header p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

.modal-body {
    padding: 25px;
}

.amount-selection h3,
.donor-info h3,
.payment-methods h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

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

.amount-btn {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.amount-btn:hover,
.amount-btn.selected {
    border-color: #28a745;
    background: #f8fff9;
    color: #28a745;
}

#custom-amount {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 25px;
}

#custom-amount:focus {
    outline: none;
    border-color: #28a745;
}

.donor-info input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 15px;
}

.donor-info input:focus {
    outline: none;
    border-color: #28a745;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: #28a745;
    background: #f8fff9;
}

.payment-option input[type="radio"] {
    margin-right: 10px;
}

.payment-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.btn-donate-submit {
    width: 100%;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-donate-submit:hover {
    background: linear-gradient(135deg, #218838, #1ea085);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .campaign-main-title {
        font-size: 22px;
    }
    
    .campaign-main-image {
        height: 250px;
    }
    
    .funding-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-item {
        text-align: center;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .amount-buttons {
        grid-template-columns: 1fr;
    }
    
    .related-campaigns-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
}

@media (max-width: 576px) {
    .campaign-content {
        padding: 20px 0;
    }
    
    .campaign-story,
    .fundraiser-details,
    .campaign-updates,
    .funding-card,
    .recent-supporters,
    .trust-safety {
        padding: 20px 15px;
    }
    
    .amount-raised {
        font-size: 24px;
    }
    
    .stat-number {
        font-size: 16px;
    }
}