/* Custom CSS for Yaya Foundation */

:root {
    --primary-color: #cf864b;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --light-color: #f8faff;
    --dark-color: #1e293b;
    --primary-gradient: linear-gradient(135deg, #cf864b 0%, #b5703d 100%);
}

/* Button Styles */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
    will-change: transform, box-shadow;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, #b5703d 0%, #cf864b 100%);
    border: none;
    transform: translateY(-1px);
    transition: transform 0.2s ease-out, background 0.2s ease-out;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    will-change: transform, box-shadow;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    transition: transform 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out;
}

/* Navigation Styles */
.navbar {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.navbar .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover, .navbar .nav-link:focus, .navbar .nav-link.active {
    color: var(--primary-color);
}

.navbar .dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.navbar .dropdown-item:hover, .navbar .dropdown-item:focus {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* News Card Styles */
.news-card {
    will-change: transform, box-shadow;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
    border-radius: 8px;
    overflow: hidden;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.news-card:hover {
    transform: translateY(-3px) translateZ(0);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.news-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.news-card .card-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.news-card .card-body {
    padding: 1.5rem;
}

.news-card .btn-primary {
    background: var(--primary-gradient);
    border: none;
}

.news-card .btn-primary:hover {
    background: linear-gradient(135deg, #b5703d 0%, #cf864b 100%);
    border: none;
}

/* Default image placeholder */
.default-img-placeholder {
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Featured section styles */
.featured-item {
    will-change: transform, box-shadow;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.featured-item:hover {
    transform: translateY(-3px) translateZ(0);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.featured-item .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Section styles */
.section-title {
    position: relative;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.section-title:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);

    margin-top: 10px;
}

/* Modern Design System - Yaya */

/* Modern Page Header */
.modern-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 5rem 0 3rem;
    position: relative;
    overflow: hidden;
    color: white;
    margin-bottom: 3rem;
    text-align: center;
}

.modern-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 30%, rgba(207, 134, 75, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 80% 70%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.modern-header .container {
    position: relative;
    z-index: 2;
}

.header-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #cf864b 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Modern Card */
.modern-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modern-card .card-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.modern-card .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.modern-card:hover .card-img-top {
    transform: scale(1.1);
}

.modern-card .category-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: #cf864b;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 10;
}

.modern-card .card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modern-card .card-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #1e293b;
    line-height: 1.4;
}

.modern-card .card-meta {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modern-card .card-text {
    color: #475569;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

/* Modern Sidebar */
.modern-sidebar .card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.modern-sidebar .card-header {
    background: white;
    border-bottom: 1px solid #f1f5f9;
    padding: 1.25rem;
}

.modern-sidebar .card-header h5 {
    color: #1e293b;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.modern-sidebar .card-body {
    padding: 1.25rem;
}

.sidebar-title {
    color: #64748b;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Modern Form Elements */
.modern-form-control {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.625rem 1rem;
    transition: all 0.2s;
}

.modern-form-control:focus {
    border-color: #cf864b;
    box-shadow: 0 0 0 3px rgba(207, 134, 75, 0.15);
}

.modern-check .form-check-input:checked {
    background-color: #cf864b;
    border-color: #cf864b;
}

/* Modern Buttons */
.btn-modern-primary {
    background: linear-gradient(135deg, #cf864b 0%, #b5703d 100%);
    color: white;
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(207, 134, 75, 0.3);
    color: white;
}
