/* CRDFUND-HAMID Frontend Styles */

.crdfund-project-info {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.funding-progress {
    margin-bottom: 20px;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.progress-stats .stat {
    text-align: center;
    flex: 1;
    min-width: 80px;
}

.progress-stats .stat .amount {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1.2;
}

.progress-stats .stat .label {
    display: block;
    font-size: 12px;
    color: #7f8c8d;
    text-transform: uppercase;
    margin-top: 5px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #ecf0f1;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

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

.goal-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #7f8c8d;
}

.goal-reached {
    color: #27ae60;
    font-weight: bold;
}

.campaign-status {
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
}

.campaign-status.status-active {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.campaign-status.status-upcoming {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.campaign-status.status-successful {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.campaign-status.status-failed {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.campaign-status.status-cancelled {
    background: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

.project-description {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.project-description h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

/* Pledge Form Styles */
.crdfund-pledge-form {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 2px solid #3498db;
    margin: 20px 0;
}

.crdfund-pledge-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 20px;
}

.pledge-amount-input {
    margin-bottom: 20px;
}

.pledge-amount-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #2c3e50;
}

.amount-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 200px;
}

.currency-symbol {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
    font-weight: bold;
    z-index: 2;
}

#pledge_amount {
    width: 100%;
    padding: 12px 12px 12px 35px;
    border: 2px solid #bdc3c7;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: border-color 0.3s ease;
}

#pledge_amount:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.pledge-limits {
    margin-top: 8px;
    font-size: 12px;
    color: #7f8c8d;
}

.pledge-validation-message {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.pledge-validation-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.pledge-validation-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.quick-amounts {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.quick-amounts-label {
    font-size: 14px;
    color: #7f8c8d;
    margin-right: 10px;
}

.quick-amount {
    padding: 8px 15px;
    background: #ecf0f1;
    border: 1px solid #bdc3c7;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.quick-amount:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* Cart Display */
.woocommerce-cart-form .pledge-amount-display {
    font-weight: bold;
    color: #27ae60;
}

/* Responsive Design */
@media (max-width: 768px) {
    .progress-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .progress-stats .stat {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .progress-stats .stat .amount {
        font-size: 18px;
    }
    
    .goal-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .quick-amounts {
        justify-content: center;
    }
    
    .crdfund-pledge-form {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .progress-stats .stat .amount {
        font-size: 16px;
    }
    
    .crdfund-project-info {
        padding: 15px;
    }
    
    .amount-input-wrapper {
        max-width: 100%;
    }
}