/* Campaign Template One (Default) Styles */

/* Main Container */
.c27-campaign-flex-wrap {
    display: flex;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.c27-campaign-col-left {
    flex: 1;
    max-width: 50%;
}

.c27-campaign-col-right {
    flex: 1;
    max-width: 50%;
}

/* Campaign Image */
.c27-campaign-col-left img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Campaign Title */
.c27-campaign-col-right h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    line-height: 1.2;
    font-weight: 700;
}

/* Progress Bar Section */
.c27-campaign-progress-wrap {
    margin-bottom: 1.5em;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.c27-campaign-progress-amount {
    font-size: 1.8rem!important;
    font-weight: bold;
    color: #08a3e3;
    display: inline;
    margin-bottom: 0.5rem;
}

.c27-campaign-progress-goal {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.c27-campaign-progress-bar-bg {
    background: #eee;
    border-radius: 1em;
    height: 1em;
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-top: 1em;
}

.c27-campaign-progress-bar-fill {
    border-radius: 1em;
    height: 1em;
    max-width: 100%;
    transition: width 1s ease-in-out;
    position: relative;
}

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

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

/* Campaign Content */
.c27-campaign-col-right .entry-content {
    line-height: 1.8;
    margin-bottom: 2rem;
}

.c27-campaign-col-right .entry-content h2,
.c27-campaign-col-right .entry-content h3,
.c27-campaign-col-right .entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.c27-campaign-col-right .entry-content p {
    margin-bottom: 1.5rem;
}

/* Donation Button - Now handled by theme's MicroModal system */

/* Thank You Messages */
.c27-campaign-thankyous {
    margin-top: 2rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.c27-campaign-thankyous h2 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
}



/* Responsive Design */
@media (max-width: 768px) {
    .c27-campaign-flex-wrap {
        flex-direction: column;
        gap: 2rem;
    }
    
    .c27-campaign-col-left,
    .c27-campaign-col-right {
        max-width: 100%;
    }
    
    .c27-campaign-col-right h1 {
        font-size: 2rem;
    }
    
    .c27-campaign-progress-amount {
        font-size: 1.5rem;
    }
    
    /* Modal button styling now handled by theme */
}

@media (max-width: 480px) {
    .c27-campaign-col-right h1 {
        font-size: 1.5rem;
    }
    
    .c27-campaign-progress-wrap {
        padding: 1rem;
    }
    
    .c27-campaign-progress-amount {
        font-size: 1.2rem;
    }
    
    .c27-campaign-thankyous {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    /* Modal elements now handled by theme */
    
    .c27-campaign-flex-wrap {
        flex-direction: column;
    }
    
    .c27-campaign-col-left,
    .c27-campaign-col-right {
        max-width: 100%;
    }
}

/* ==========================================================================
   TEMPLATE ONE - THANK YOU MESSAGES STYLES (ensures Template One look)
   ========================================================================== */

/* Ensure Template One maintains its original thank you grid layout */
.c27-template-one .c27-thanks-grid {
    column-count: 4;
    column-gap: 24px;
    margin: 2em 0;
    break-inside: avoid;
}

.c27-template-one .c27-thanks-card {
    break-inside: avoid;
    margin-bottom: 24px;
    display: block;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s;
    min-height: 130px;
    page-break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

.c27-template-one .c27-thanks-name {
    font-size: 1.3em;
    font-weight: 600;
    color: #222;
    margin-bottom: 0;
    line-height: 1.5;
}

.c27-template-one .c27-thanks-date {
    font-size: 0.8em;
    color: #888;
    margin-bottom: 1.2em;
}

.c27-template-one .c27-thanks-message blockquote {
    border-left: 4px solid #e60067;
    padding-left: 1em;
    margin: 0;
    font-style: italic;
    line-height: 1.3;
    color: #1300c1;
    font-size: 0.9em;
    background: none;
    min-height: 1em;
    word-break: break-word;
    transition: none;
}

.c27-template-one .c27-amount-section {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 0.5em;
}

.c27-template-one .c27-amount-label {
    font-size: 1em;
    font-weight: 600;
    line-height: 1;
}

.c27-template-one .c27-amount-value {
    font-size: 1em;
    font-weight: 600;
    color: #1300c1;
}

/* ===== SHARE PANEL STYLES ===== */

/* Help Section */
.c27-help-section {
    background: white;
    padding: 2rem;
    border: 1px solid #cbcbcb;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s;
}

.c27-help-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    margin-top: 0rem;
}

.c27-help-section p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Share Grid */
.c27-share-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.c27-share-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.c27-share-item:hover {
    transform: translateY(-2px);
}

.c27-share-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
}

.c27-share-icon.whatsapp { background: #25D366; }
.c27-share-icon.facebook { background: #1877F2; }
.c27-share-icon.bluesky { background: #0085ff; }
.c27-share-icon.print { background: #6c757d; }
.c27-share-icon.messenger { background: #0084FF; }
.c27-share-icon.linkedin { background: #0A66C2; }
.c27-share-icon.twitter { background: #000000; }
.c27-share-icon.email { background: #6c757d; }

.c27-share-item span {
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* Copy Link Section */
.c27-copy-link {
    margin-top: 1rem;
}

.c27-link-input {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #cbcbcb;
    border-radius: 8px;
    padding: 0.75rem;
    gap: 0.75rem;
}

.c27-link-input i {
    color: #666;
    font-size: 16px;
}

.c27-link-input input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #333;
    outline: none;
}

.c27-copy-btn {
    /* Colors will be set dynamically from settings */
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0px!important;
}

/* ===== DONATION SUMMARY STYLES ===== */

/* Donation Summary */
.c27-donation-summary {
    background: white;
    padding: 2rem;
    border: 1px solid #cbcbcb;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s;
}

.c27-donation-summary h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.c27-summary-content {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.c27-summary-left {
    flex: 1;
}

.c27-summary-right {
    flex-shrink: 0;
}

.c27-summary-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.c27-summary-breakdown {
    margin-bottom: 1rem;
}

.c27-summary-breakdown div {
    color: #666;
    margin-bottom: 0.25rem;
}

/* Progress circle in donation summary */
.c27-summary-progress-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
}

.c27-donation-summary .c27-summary-circle.c27-progress-circle {
    width: 135px !important;
    height: 135px !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* z-index now handled by theme */
}

.c27-donation-summary .c27-summary-circle.c27-progress-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(270deg);
}

.c27-donation-summary .c27-summary-circle .c27-progress-circle-bg {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 12;
}

.c27-donation-summary .c27-summary-circle .c27-progress-circle-fill {
    fill: none;
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292; /* Start at 0% initially */
    transition: stroke-dashoffset 0.3s ease;
}

.c27-donation-summary .c27-summary-circle .c27-progress-circle-text {
    position: absolute;
    inset: 0; /* full overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    pointer-events: none;
}

.c27-donation-summary .c27-summary-circle .c27-progress-percentage {
    font-size: 18px !important;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    line-height: 1;
    display: block;
    width: 100%;
}

/* Give Now Button in Summary */
.c27-give-now-btn {
    /* Colors will be set dynamically from settings */
    border: none;
    border-radius: 6px;
    padding: 1rem 2rem;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    /* Mobile Layout Reordering for Template One */
    .c27-template-one .c27-campaign-flex-wrap {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        grid-template-areas:
            "title"
            "image" 
            "progress"
            "content"
            "donate"
            "share"
            "thanks"
            "summary" !important;
    }
    
    /* Hide the original column structure on mobile */
    .c27-template-one .c27-campaign-col-left,
    .c27-template-one .c27-campaign-col-right {
        display: contents;
    }
    
    /* Assign grid areas to specific elements */
    .c27-template-one .c27-campaign-col-right h1 {
        grid-area: title;
        margin-bottom: 0 !important;
    }
    
    .c27-template-one .c27-campaign-col-left img {
        grid-area: image;
        margin-bottom: 0 !important;
    }
    
    .c27-template-one .c27-campaign-progress-wrap {
        grid-area: progress;
        margin-bottom: 0 !important;
    }
    
    .c27-template-one .c27-campaign-col-right .entry-content {
        grid-area: content;
        margin-bottom: 0 !important;
    }
    
    /* Modal grid area now handled by theme */
    
    .c27-template-one .c27-help-section {
        grid-area: share;
        margin: 0 !important;
    }
    
    .c27-template-one .c27-thanks-section {
        grid-area: thanks;
        margin: 0 !important;
    }
    
    .c27-template-one .c27-donation-summary {
        grid-area: summary;
        margin: 0 !important;
    }
    
    /* Hide grid areas when components are not shown to prevent empty spaces */
    .c27-template-one .c27-help-section[style*="display: none"],
    .c27-template-one .c27-donation-summary[style*="display: none"] {
        display: none !important;
    }
    
    /* Share grid mobile adjustments */
    .c27-share-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }
    
    /* Summary content mobile adjustments */
    .c27-summary-content {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .c27-summary-right {
        order: -1;
    }
    
    /* Progress circle mobile sizing */
    .c27-donation-summary .c27-summary-circle.c27-progress-circle {
        width: 100px !important;
        height: 100px !important;
    }
    
    .c27-donation-summary .c27-summary-circle .c27-progress-percentage {
        font-size: 14px !important;
    }
}

/* Progress circle elements - z-index now handled by theme */ 