/* Custom styles for JRFC website */

/* General styles */
html {
    height: 100%;
}

body {
	font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	line-height: 1.6;
	color: #1f2937;
	min-height: 100%;
	display: flex;
	flex-direction: column;
	background-color: #f7f8fa;
}

.container {
    flex: 1 0 auto;
}

footer {
	flex-shrink: 0;
	background: linear-gradient(180deg, #ffffff 0%, #f3f4f6 100%);
	border-top: 1px solid rgba(0,0,0,0.05);
	padding: 1rem 0;
	margin-top: auto;
	text-align: center;
	width: 100%;
}

/* Navbar */
.navbar.bg-primary {
    background: linear-gradient(90deg, #0d6efd 0%, #6f42c1 100%) !important;
}
.header-nav {
    backdrop-filter: saturate(120%) blur(6px);
}

.navbar .nav-link.active {
    color: #fff !important;
    position: relative;
}

.navbar .nav-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    margin: auto;
    width: 28px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

.header-search .form-control {
    border-radius: .5rem;
}

.header-search .btn {
    border-radius: .5rem;
}

.navbar .navbar-brand {
	font-weight: 700;
}

.navbar .nav-link {
	font-weight: 500;
	opacity: 0.9;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.navbar .nav-link:hover {
	opacity: 1;
	transform: translateY(-1px);
}

/* Member cards */
.member-card {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	margin-bottom: 20px;
	height: 100%;
	border: none;
	box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.1);
}

.member-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.member-card img {
	height: 300px;
	width: 100%;
	object-fit: cover;
	object-position: center;
	border-top-left-radius: .5rem;
	border-top-right-radius: .5rem;
}

/* Hero */
.hero {
	background: radial-gradient(1000px 400px at 0% 0%, rgba(13,110,253,0.15), transparent),
		radial-gradient(1000px 400px at 100% 0%, rgba(111,66,193,0.15), transparent),
		linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
	border: 1px solid rgba(13,110,253,0.08);
	border-radius: 1rem;
	padding: 2.5rem;
	box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
}

.hero h1 {
	font-weight: 800;
	letter-spacing: -0.02em;
}

.hero p.lead {
	color: #4b5563;
}

.btn-lift {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-lift:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgba(13,110,253,0.2);
}

/* PWA install button */
#installPwaBtn { vertical-align: middle; }

/* Profile page */
.profile-header {
	background: linear-gradient(180deg, #ffffff 0%, #f7f7fb 100%);
	padding: 2rem;
	border-radius: 0.75rem;
	margin-bottom: 2rem;
	border: 1px solid rgba(0,0,0,0.05);
	box-shadow: 0 8px 24px rgba(2, 6, 23, 0.06);
}

.profile-header img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    object-position: center;
    margin-bottom: 1rem;
}

.profile-section {
    margin-bottom: 2rem;
}

.profile-section h3 {
    color: #0d6efd;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0d6efd;
}

/* Business details */
.business-details {
	background-color: #ffffff;
	padding: 1.5rem;
	border-radius: 0.75rem;
	box-shadow: 0 10px 25px rgba(2, 6, 23, 0.06);
	border: 1px solid rgba(0,0,0,0.05);
}

.business-details img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

/* Family member cards */
.family-card {
	margin-bottom: 20px;
	height: 100%;
	box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	border: none;
}

.family-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.family-card .card-img-top {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
}

.family-card .card-body {
	background-color: #f8fafc;
	padding: 1.25rem;
}

.family-card .card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Admin dashboard */
.admin-table th {
    background-color: #f8f9fa;
}

.admin-table img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

/* Forms */
.form-group {
	margin-bottom: 1.25rem;
}

.form-control:focus {
	box-shadow: 0 0 0 .2rem rgba(13,110,253,.15);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .member-card img {
        height: 250px;
    }
    
    .family-card .card-img-top {
        height: 350px;
    }
    
    .profile-header {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .member-card img {
        height: 200px;
    }
    
    .profile-header {
        padding: 1rem;
    }

    .profile-header img {
        max-height: 300px;
    }

    .family-card .card-img-top {
        height: 300px;
    }
    
    .business-details {
        padding: 1rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .member-card img {
        height: 180px;
    }
    
    .profile-header {
        padding: 0.75rem;
    }

    .profile-header img {
        max-height: 250px;
    }

    .family-card .card-img-top {
        height: 250px;
    }
    
    .business-details {
        padding: 0.75rem;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
} 