/**
 * Palestinian Doctors Projects - Frontend Styles
 */

/* Reset and Base Styles */
.pdp-projects-container * {
    box-sizing: border-box;
}

.pdp-projects-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Projects Grid */
.pdp-projects-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

.pdp-projects-grid.pdp-columns-1 {
    grid-template-columns: 1fr;
}

.pdp-projects-grid.pdp-columns-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.pdp-projects-grid.pdp-columns-3 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.pdp-projects-grid.pdp-columns-4 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Project Card */
.pdp-project-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.pdp-project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Project Image */
.pdp-project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

.pdp-project-card:hover .pdp-project-image img {
    transform: scale(1.05);
}

.pdp-project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 150, 136, 0.8), rgba(76, 175, 80, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 20px;
}

.pdp-project-card:hover .pdp-project-overlay {
    opacity: 1;
}

.pdp-project-field {
    background: rgba(255, 255, 255, 0.95);
    color: #2c5530;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Project Content */
.pdp-project-content {
    padding: 24px;
}

.pdp-project-title {
    margin: 0 0 16px 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.pdp-project-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pdp-project-title a:hover {
    color: #00796b;
}

/* Project Meta */
.pdp-project-meta {
    margin-bottom: 16px;
}

.pdp-meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.pdp-meta-label {
    font-weight: 600;
    color: #666;
    margin-right: 8px;
    min-width: 80px;
}

.pdp-meta-value {
    color: #333;
    flex: 1;
}

/* Project Excerpt */
.pdp-project-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Project Footer */
.pdp-project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.pdp-project-cost {
    display: flex;
    flex-direction: column;
}

.pdp-cost-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.pdp-cost-value {
    font-size: 18px;
    font-weight: 700;
    color: #00796b;
}

/* Read More Button */
.pdp-read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #00796b, #4caf50);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.pdp-read-more-btn:hover {
    background: linear-gradient(135deg, #00695c, #388e3c);
    transform: translateX(4px);
    color: white;
}

.pdp-arrow-icon {
    transition: transform 0.3s ease;
}

.pdp-read-more-btn:hover .pdp-arrow-icon {
    transform: translateX(4px);
}

/* No Projects */
.pdp-no-projects {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.pdp-no-projects-icon {
    margin-bottom: 20px;
    color: #ccc;
}

.pdp-no-projects h3 {
    margin: 0 0 12px 0;
    font-size: 24px;
    color: #333;
}

.pdp-no-projects p {
    margin: 0;
    font-size: 16px;
}

/* Single Project Styles */
.pdp-single-project-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.pdp-single-project-wrapper {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Project Header */
.pdp-project-hero-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.pdp-project-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pdp-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 150, 136, 0.8), rgba(76, 175, 80, 0.6));
    display: flex;
    align-items: flex-end;
    padding: 40px;
}

.pdp-hero-content {
    color: white;
}

.pdp-project-field-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.pdp-project-title {
    font-size: 48px;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.pdp-project-header-simple {
    padding: 40px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.pdp-project-header-simple .pdp-project-field-badge {
    background: #00796b;
    color: white;
}

.pdp-project-header-simple .pdp-project-title {
    color: #2c3e50;
    font-size: 36px;
}

/* Project Content */
.pdp-project-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 40px;
}

.pdp-project-section {
    margin-bottom: 40px;
}

.pdp-section-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid #00796b;
    display: inline-block;
}

.pdp-project-overview {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

/* Project Details Grid */
.pdp-project-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.pdp-detail-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.pdp-detail-card:hover {
    background: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.pdp-detail-icon {
    background: linear-gradient(135deg, #00796b, #4caf50);
    color: white;
    padding: 12px;
    border-radius: 12px;
    flex-shrink: 0;
}

.pdp-detail-content h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

.pdp-detail-content p {
    margin: 0 0 8px 0;
    color: #666;
    line-height: 1.6;
}

.pdp-detail-number {
    display: inline-block;
    background: #00796b;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Project Sidebar */
.pdp-project-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pdp-funding-card,
.pdp-share-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.pdp-funding-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px 0;
}

.pdp-funding-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.pdp-funding-label {
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

.pdp-funding-value {
    font-weight: 700;
    color: #2c3e50;
}

.pdp-cost-highlight {
    color: #00796b;
    font-size: 18px;
}

/* Donate Section */
.pdp-donate-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.pdp-donate-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #e91e63, #f44336);
    color: white;
    padding: 16px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    justify-content: center;
}

.pdp-donate-btn:hover {
    background: linear-gradient(135deg, #c2185b, #d32f2f);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(233, 30, 99, 0.3);
}

.pdp-donate-note {
    margin: 12px 0 0 0;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* Share Section */
.pdp-share-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 16px 0;
}

.pdp-share-buttons {
    display: flex;
    gap: 12px;
}

.pdp-share-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    color: white;
}

.pdp-share-facebook {
    background: #1877f2;
}

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

.pdp-share-linkedin {
    background: #0077b5;
}

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

/* Back to Projects */
.pdp-back-to-projects {
    padding: 24px 40px;
    border-top: 1px solid #f0f0f0;
}

.pdp-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pdp-back-btn:hover {
    color: #00796b;
    transform: translateX(-4px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .pdp-projects-container {
        padding: 16px;
    }
    
    .pdp-projects-grid {
        gap: 20px;
    }
    
    .pdp-projects-grid.pdp-columns-2,
    .pdp-projects-grid.pdp-columns-3,
    .pdp-projects-grid.pdp-columns-4 {
        grid-template-columns: 1fr;
    }
    
    .pdp-project-content {
        padding: 20px;
    }
    
    .pdp-project-footer {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .pdp-single-project-container {
        padding: 16px;
    }
    
    .pdp-project-content-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
    }
    
    .pdp-project-title {
        font-size: 32px;
    }
    
    .pdp-hero-overlay {
        padding: 24px;
    }
    
    .pdp-project-details-grid {
        grid-template-columns: 1fr;
    }
    
    .pdp-back-to-projects {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .pdp-project-hero-image {
        height: 250px;
    }
    
    .pdp-project-title {
        font-size: 24px;
    }
    
    .pdp-project-content-wrapper {
        padding: 20px;
    }
    
    .pdp-share-buttons {
        flex-direction: column;
    }
}

