/************************************************/
/*            Faliyetler Styles                 */
/************************************************/

.activities-filter {
    padding: 30px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin: 80px auto 50px;
    max-width: 1200px;
    border-radius: 15px;
    border-top: 4px solid var(--primary);
    position: relative;
}

.filter-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-box input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
    outline: none;
    background: #fff;
}

.search-box input::placeholder {
    color: #aaa;
    font-weight: 400;
}

.search-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    font-size: 1.1rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.search-box input:focus + i {
    color: var(--primary);
}

.filter-options {
    display: flex;
    gap: 15px;
}

.filter-options select {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    background-color: #f9f9f9;
    color: #555;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    transition: all 0.3s ease;
}

.filter-options select:hover {
    border-color: #ccc;
    background-color: #f5f5f5;
}

.filter-options select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
    outline: none;
    background-color: #fff;
}

/* NEW ACTIVITY CARD DESIGN */
.activities-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto 60px;
}

.activity-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.05);
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.activity-image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.activity-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.activity-card:hover .activity-image {
    transform: scale(1.08);
}

.activity-date-ribbon {
    position: absolute;
    top: 20px;
    left: -5px;
    background: var(--primary);
    color: white;
    padding: 8px 15px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-date-ribbon::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 5px;
    height: 5px;
    background: rgba(var(--primary-rgb), 0.8);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.activity-category {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 8px 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    border-top-left-radius: 8px;
    transition: all 0.3s ease;
}

.activity-card:hover .activity-category {
    background: var(--secondary);
}

.activity-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}

.activity-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary);
    border-radius: 100px;
    transition: width 0.3s ease;
}

.activity-card:hover .activity-content::before {
    width: 80px;
}

.activity-title {
    margin-top: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: color 0.3s ease;
    position: relative;
    border-bottom: 1px dashed #eee;
    padding-bottom: 12px;
}

.activity-card:hover .activity-title {
    color: var(--primary);
}

.activity-mentor {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 15px 0;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
    transition: all 0.3s ease;
}

.activity-mentor i {
    color: var(--primary);
    font-size: 1.25rem;
    opacity: 0.9;
}

.activity-card:hover .activity-mentor {
    background: rgba(var(--primary-rgb), 0.08);
    transform: translateX(5px);
}

.activity-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.activity-details-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.activity-details-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary);
    transition: all 0.4s cubic-bezier(0.42, 0, 0.58, 1);
    z-index: -1;
}

.activity-details-btn:hover {
    color: #0E185F;
}

.activity-details-btn:hover::before {
    width: 100%;
}

.activity-details-btn i {
    transition: transform 0.3s ease;
}

.activity-details-btn:hover i {
    transform: translateX(5px);
}

/* Traditional decorative elements */
.activity-card::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 5px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.activity-card:hover::before {
    opacity: 1;
}

/* Animation for card appearance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.activity-card {
    animation: fadeInUp 0.5s ease forwards;
}

/* Staggered animation for cards */
.activities-container .activity-card:nth-child(1) { animation-delay: 0.1s; }
.activities-container .activity-card:nth-child(2) { animation-delay: 0.2s; }
.activities-container .activity-card:nth-child(3) { animation-delay: 0.3s; }
.activities-container .activity-card:nth-child(4) { animation-delay: 0.4s; }
.activities-container .activity-card:nth-child(5) { animation-delay: 0.5s; }
.activities-container .activity-card:nth-child(6) { animation-delay: 0.6s; }

/* Page Title Styling */
.page-title-container {
    text-align: center;
    padding: 60px 20px 40px;
    margin-top: 60px;
    position: relative;
    background: linear-gradient(to bottom, #f7f7f7, #ffffff);
    border-bottom: 1px solid #eaeaea;
}

.page-title-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.page-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 800;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-title::after {
    content: "";
    position: absolute;
    width: 70%;
    height: 2px;
    background: var(--primary);
    bottom: -5px;
    left: 15%;
}

.page-subtitle {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

/* Loading Animation */
.activities-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
    transition: all 0.3s ease;
}

.activities-loading.hidden {
    opacity: 0;
    visibility: hidden;
    height: 0;
    padding: 0;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.activities-loading p {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .activities-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .activities-filter {
        margin: 60px 15px 30px;
        padding: 20px;
    }
    
    .filter-options {
        flex-direction: column;
    }
    
    .search-box input,
    .filter-options select {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .activities-container {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 20px;
    }

    .activity-content {
        padding: 15px;
    }

    .activity-title {
        font-size: 1.1rem;
    }
    
    .activity-mentor {
        padding: 8px;
    }
    
    .activity-image-container {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .activities-container {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-subtitle {
        font-size: 0.95rem;
    }
    
    .activity-date-ribbon,
    .activity-category {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
    
    .activity-image-container {
        height: 200px;
    }
}

/* No results message */
.no-results {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 600px;
}

.no-results i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 10px;
}

.no-results p {
    color: #777;
}


