/* 
 * Lagna Vishesh - Maharashtrian Matrimonial Website
 * Main Stylesheet
 */

/* ===== Variables ===== */
:root {
    /* Primary Colors - Inspired by Maharashtrian wedding colors */
    --primary-color: #D32F2F; /* Deep Red */
    --secondary-color: #FFC107; /* Gold */
    --accent-color: #7B1FA2; /* Purple */
    
    /* Neutral Colors */
    --dark-color: #333333;
    --light-color: #F5F5F5;
    --white-color: #FFFFFF;
    
    /* Additional Colors */
    --success-color: #4CAF50;
    --info-color: #2196F3;
    --warning-color: #FF9800;
    --danger-color: #F44336;
    
    /* Font Families */
    --primary-font: 'Poppins', sans-serif;
    --hindi-font: 'Tiro Devanagari Hindi', serif;
}

/* ===== Base Styles ===== */
body {
    font-family: var(--primary-font);
    color: var(--dark-color);
    background-color: var(--light-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #B71C1C;
    border-color: #B71C1C;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* ===== Header Styles ===== */
.navbar {
    padding: 0.5rem 1rem;
}

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

.brand-text {
    color: var(--primary-color);
    font-family: var(--hindi-font);
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* ===== Hero Section or Home page main Image section ===== */
.hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZip6fbsDU1HOYtwZFLHu_qle59kGxqxKNk5AwBWqg29xF03tbCzh2aLR15vG9oqB5Rj7Bod-R7S-B4eHXryaz51UyDigG_dGYfpFR4gDqZMnccLxbZoCUBwRKBvW_2-nbObI3fFmDqNuyqdjQHFDgfbzoo74xBwH5WU0cEkTk-VuitwTirWzUBANf0xc/s1000/web_main.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    padding: 6rem 0;
    margin-bottom: 3rem;
    border-radius: 0 0 50% 50% / 10%;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: var(--hindi-font);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* ===== Feature Cards ===== */
.feature-card {
    background-color: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ===== Profile Cards ===== */
.profile-card {
    background-color: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 2rem;
    position: relative;
}

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

/*.profile-img-container {*/
/*    height: 250px;*/
/*    overflow: hidden;*/
/*    background-color: #f0f0f0; /* Light background for containers */
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*}*/

/*.profile-img {*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    object-fit: cover;*/
/*    transition: transform 0.5s ease;*/
/*}*/
/* Featured Profiles Image Fix */
.profile-img-container {
    height: 300px !important;
    overflow: hidden;
    position: relative;
}

.profile-img {
    width: 100% !important;
    height: 300px !important;
    object-fit: cover !important;
    object-position: center 15% !important;
    display: block;
}

.profile-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center 15%;
    display: block;
}

.profile-card:hover .profile-img {
    transform: scale(1.05);
}

.profile-verified-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--success-color);
    color: var(--white-color);
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.profile-details {
    padding: 1.5rem;
}

/* Small Profile Cards (60% smaller) */
.small-profile-card {
    transform: scale(0.9);
    margin-bottom: 1rem;
}

.small-profile-card .profile-img-container {
    height: 100px;
}

.small-profile-card .profile-details {
    padding: 0.75rem;
}

.small-profile-card .profile-name {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.small-profile-card .profile-info {
    font-size: 0.8rem;
    margin-bottom: 0.15rem;
}

.small-profile-card .profile-actions {
    margin-top: 0.5rem;
}

.small-profile-card .btn {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
}

.small-profile-card .profile-verified-badge {
    padding: 0.15rem 0.35rem;
    font-size: 0.65rem;
}

/* Medium Profile Cards */
.medium-profile-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.medium-profile-card .profile-img-container {
    height: 180px;
    width: 100%;
    flex-shrink: 0; /* Prevent the image container from shrinking */
}

.medium-profile-card .profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.medium-profile-card .profile-details {
    padding: 1rem;
    flex-grow: 1; /* Allow details to grow and fill available space */
    display: flex;
    flex-direction: column;
}

.medium-profile-card .profile-name {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.medium-profile-card .profile-info {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.medium-profile-card .profile-actions {
    margin-top: auto; /* Push actions to bottom of card */
}

.medium-profile-card .btn {
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
}

.medium-profile-card .profile-verified-badge {
    padding: 0.18rem 0.4rem;
    font-size: 0.7rem;
}

/* 5-column layout (20% width each) */
.col-md-20-percent {
    flex: 0 0 auto;
    width: 20%;
}

@media (max-width: 768px) {
    .col-md-20-percent {
        width: 50%;
    }
}

@media (max-width: 576px) {
    .col-md-20-percent {
        width: 100%;
    }
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.profile-info {
    margin-bottom: 0.25rem;
    color: var(--dark-color);
    font-size: 0.9rem;
}

.profile-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

/* ===== Search Filters ===== */
.search-filters {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.filter-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.filter-section {
    margin-bottom: 1.5rem;
}

.filter-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* ===== Dashboard Styles ===== */
.dashboard-card {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    height: 100%;
}

.dashboard-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.dashboard-card-title i {
    margin-right: 0.5rem;
}

.dashboard-stat {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.dashboard-stat-label {
    font-size: 0.9rem;
    color: var(--dark-color);
}

/* ===== Profile Page Styles ===== */
.profile-header {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--white-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-user-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.profile-section {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.profile-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.profile-detail-item {
    margin-bottom: 1rem;
}

.profile-detail-label {
    font-weight: 600;
    color: var(--dark-color);
}

.profile-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.profile-photo-item {
    border-radius: 10px;
    overflow: hidden;
    height: 150px;
}

.profile-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Success Stories ===== */
.story-card {
    background-color: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.story-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.story-content {
    padding: 1.5rem;
}

.story-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.story-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1rem;
}

.story-excerpt {
    margin-bottom: 1rem;
}

/* ===== Subscription Plans ===== */
.plan-card {
    background-color: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

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

.plan-card.featured {
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

.plan-header {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 1.5rem;
    text-align: center;
}

.plan-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.plan-duration {
    font-size: 0.9rem;
    opacity: 0.8;
}

.plan-features {
    padding: 1.5rem;
}

.plan-feature-item {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.plan-feature-item i {
    color: var(--success-color);
    margin-right: 0.5rem;
}

.plan-footer {
    padding: 0 1.5rem 1.5rem;
    text-align: center;
}

/* ===== Footer Styles ===== */
footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 3rem 0 1.5rem;
}

footer h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.social-icons a {
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--secondary-color) !important;
}

/* ===== Authentication Pages ===== */
.auth-container {
    max-width: 500px;
    margin: 2rem auto;
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--primary-color);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.auth-divider::before, .auth-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.auth-divider span {
    padding: 0 1rem;
    color: #777;
    font-size: 0.9rem;
}

.social-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem;
    border-radius: 5px;
    font-weight: 500;
    margin-bottom: 1rem;
    transition: background-color 0.3s ease;
}

.social-login-btn i {
    margin-right: 0.5rem;
    font-size: 1.25rem;
}

.google-btn {
    background-color: #DB4437;
    color: var(--white-color);
}

.facebook-btn {
    background-color: #4267B2;
    color: var(--white-color);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

/* ===== Responsive Styles ===== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
    }
    
    .profile-user-name {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .plan-card.featured {
        transform: none;
    }
}

/* ===== Custom Decorative Elements ===== */
.indian-pattern {
    background-image: url('../images/indian-pattern.png');
    background-repeat: repeat-x;
    height: 30px;
    margin: 2rem 0;
}

.section-divider {
    display: flex;
    align-items: center;
    margin: 3rem 0;
}

.section-divider::before, .section-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.section-divider-icon {
    padding: 0 1rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* ===== Animation Classes ===== */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #B71C1C;
}
