/* Özel Post Yöneticisi - Frontend CSS */

/* Genel Stiller */
.cpm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cpm-section {
    margin: 40px 0;
}

.cpm-section-title {
    text-align: center;
    margin-bottom: 40px;
}

.cpm-section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
}

.cpm-section-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Projeler Grid */
.cpm-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.cpm-project-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.cpm-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.cpm-project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

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

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

.cpm-project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.cpm-project-overlay a {
    color: #fff;
    text-decoration: none;
    padding: 12px 24px;
    border: 2px solid #fff;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cpm-project-overlay a:hover {
    background: #fff;
    color: #333;
}

.cpm-project-content {
    padding: 25px;
}

.cpm-project-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #333;
}

.cpm-project-title a {
    color: inherit;
    text-decoration: none;
}

.cpm-project-title a:hover {
    color: #0073aa;
}

.cpm-project-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.cpm-project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #888;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.cpm-project-client {
    font-weight: 600;
    color: #0073aa;
}

.cpm-project-date {
    font-style: italic;
}

/* Müşteri Yorumları */
.cpm-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.cpm-testimonial-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.cpm-testimonial-card:hover {
    transform: translateY(-3px);
}

.cpm-testimonial-card::before {
    content: '"';
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 4rem;
    color: #0073aa;
    opacity: 0.2;
    font-family: serif;
}

.cpm-testimonial-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 20px;
    font-style: italic;
}

.cpm-testimonial-rating {
    margin-bottom: 15px;
}

.cpm-testimonial-rating .star {
    color: #ffb900;
    font-size: 1.2rem;
}

.cpm-testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cpm-testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.cpm-testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cpm-testimonial-info h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.1rem;
}

.cpm-testimonial-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Ekip Üyeleri */
.cpm-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.cpm-team-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.cpm-team-card:hover {
    transform: translateY(-5px);
}

.cpm-team-avatar {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.cpm-team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cpm-team-card:hover .cpm-team-avatar img {
    transform: scale(1.05);
}

.cpm-team-content {
    padding: 25px;
}

.cpm-team-name {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #333;
}

.cpm-team-position {
    color: #0073aa;
    font-weight: 600;
    margin-bottom: 15px;
}

.cpm-team-bio {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.cpm-team-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.cpm-team-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border-radius: 50%;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cpm-team-social a:hover {
    background: #0073aa;
    color: #fff;
    transform: translateY(-2px);
}

/* Filtreler */
.cpm-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.cpm-filter-btn {
    padding: 10px 20px;
    border: 2px solid #0073aa;
    background: transparent;
    color: #0073aa;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.cpm-filter-btn:hover,
.cpm-filter-btn.active {
    background: #0073aa;
    color: #fff;
}

/* Sayfalama */
.cpm-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.cpm-pagination a,
.cpm-pagination span {
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.cpm-pagination a:hover,
.cpm-pagination .current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .cpm-container {
        padding: 0 15px;
    }
    
    .cpm-section-title h2 {
        font-size: 2rem;
    }
    
    .cpm-projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cpm-testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cpm-team-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .cpm-filters {
        gap: 10px;
    }
    
    .cpm-filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .cpm-project-content,
    .cpm-testimonial-card,
    .cpm-team-content {
        padding: 20px;
    }
    
    .cpm-project-title {
        font-size: 1.2rem;
    }
    
    .cpm-testimonial-content {
        font-size: 1rem;
    }
    
    .cpm-team-name {
        font-size: 1.1rem;
    }
}

/* Animasyonlar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cpm-project-card,
.cpm-testimonial-card,
.cpm-team-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Yükleme Durumu */
.cpm-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.cpm-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Boş Durum */
.cpm-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.cpm-empty h3 {
    margin-bottom: 10px;
    color: #333;
}

.cpm-empty p {
    margin-bottom: 20px;
}

/* Özel Sınıflar */
.cpm-text-center {
    text-align: center;
}

.cpm-mb-20 {
    margin-bottom: 20px;
}

.cpm-mb-30 {
    margin-bottom: 30px;
}

.cpm-mb-40 {
    margin-bottom: 40px;
}

.cpm-mt-20 {
    margin-top: 20px;
}

.cpm-mt-30 {
    margin-top: 30px;
}

.cpm-mt-40 {
    margin-top: 40px;
} 