/*
Theme Name: ConnectU
Theme URI: https://connectu.digital
Author: ConnectU Team
Description: ConnectU Dating App Theme with BuddyPress integration
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: connectu
*/

/* ── Variables ── */
:root {
    --purple: #7B2FBE;
    --pink: #E91E8C;
    --dark-purple: #2c0f4a;
    --white: #FFFFFF;
    --text-color: #333;
    --light-gray: #f4f4f4;
    --gradient: linear-gradient(135deg, #7B2FBE, #E91E8C);
    --card-shadow: 0 4px 20px rgba(123,47,190,0.12);
}

/* ── Reset ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: #f8f5ff;
}

a { text-decoration: none; color: var(--purple); }
img { max-width: 100%; }

/* ── Google Font ── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ── Container ── */
.container, .connectu-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Buttons ── */
.btn, .connectu-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
}
.btn-primary {
    background: var(--gradient);
    color: var(--white);
}
.btn-primary:hover { opacity: 0.9; color: var(--white); }
.btn-secondary {
    background: transparent;
    border: 2px solid var(--purple);
    color: var(--purple);
}
.btn-secondary:hover { background: var(--purple); color: var(--white); }

/* ── Header / Navbar ── */
.site-header {
    background: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.site-header .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--purple);
    text-decoration: none;
}
.site-logo span { color: var(--pink); }

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
    color: var(--purple);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s;
}
.main-nav a:hover { background: var(--light-gray); }
.main-nav a.btn-signup {
    background: var(--purple);
    color: var(--white);
    border-radius: 50px;
}
.main-nav a.btn-signup:hover { background: var(--pink); }

/* ── Hero ── */
.hero-section {
    background: var(--gradient);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-section h1 { font-size: 3.2rem; margin-bottom: 20px; line-height: 1.2; }
.hero-section p { font-size: 1.2rem; margin-bottom: 40px; opacity: 0.9; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-btns .btn-white {
    background: var(--white);
    color: var(--purple);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    border: 2px solid transparent;
    transition: all 0.3s;
}
.hero-btns .btn-white:hover { background: transparent; border-color: var(--white); color: var(--white); }
.hero-btns .btn-outline-white {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s;
}
.hero-btns .btn-outline-white:hover { background: var(--white); color: var(--purple); }

/* ── Section ── */
.section { padding: 60px 0; }
.section h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--purple);
}

/* ── Cards ── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.connectu-card {
    background: var(--white);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s;
}
.connectu-card:hover { transform: translateY(-4px); }

/* ── BuddyPress Overrides ── */
#buddypress { font-family: 'Poppins', sans-serif; }

/* BuddyPress nav tabs */
#buddypress div.item-list-tabs ul,
#buddypress div.item-list-tabs ul li,
#buddypress div.activity-list li.load-more a {
    font-family: 'Poppins', sans-serif;
}

#buddypress div.item-list-tabs ul li a,
#buddypress div.item-list-tabs ul li span {
    padding: 8px 20px;
    border-radius: 50px;
    color: var(--purple);
    font-weight: 500;
    transition: all 0.2s;
}
#buddypress div.item-list-tabs ul li.current a,
#buddypress div.item-list-tabs ul li.selected a {
    background: var(--gradient);
    color: var(--white);
}

/* BuddyPress buttons */
#buddypress a.button,
#buddypress input[type=submit],
#buddypress input[type=button],
#buddypress button {
    background: var(--gradient);
    color: var(--white);
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
#buddypress a.button:hover,
#buddypress input[type=submit]:hover { opacity: 0.9; color: var(--white); }

/* BuddyPress profile header */
#buddypress #item-header {
    background: var(--gradient);
    border-radius: 16px;
    padding: 28px;
    color: var(--white);
    margin-bottom: 24px;
}
#buddypress #item-header h1,
#buddypress #item-header h2 { color: var(--white); }

/* BuddyPress avatar */
#buddypress #item-header-avatar img {
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* BuddyPress activity feed */
#buddypress ul.activity-list li {
    background: var(--white);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--card-shadow);
    border: none;
}

/* BuddyPress members list */
#buddypress ul.item-list li {
    background: var(--white);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--card-shadow);
    border: none;
    transition: transform 0.2s;
}
#buddypress ul.item-list li:hover { transform: translateY(-2px); }
#buddypress ul.item-list li .item-avatar img {
    border-radius: 50%;
    border: 3px solid var(--purple);
}

/* BuddyPress messages */
#buddypress table.messages-notices th,
#buddypress #message-thread #the-thread li .message-content {
    background: var(--white);
    border-radius: 10px;
    padding: 14px;
}

/* BuddyPress forms */
#buddypress input[type=text],
#buddypress input[type=email],
#buddypress input[type=password],
#buddypress textarea,
#buddypress select {
    border: 2px solid #e0d5f5;
    border-radius: 10px;
    padding: 10px 14px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.2s;
    width: 100%;
}
#buddypress input[type=text]:focus,
#buddypress input[type=email]:focus,
#buddypress input[type=password]:focus,
#buddypress textarea:focus {
    border-color: var(--purple);
    outline: none;
}

/* BuddyPress group cards */
#buddypress ul.item-list li .group-details a {
    color: var(--dark-purple);
    font-weight: 600;
}
#buddypress ul.item-list li .action a {
    background: var(--gradient);
    color: var(--white);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* BuddyPress friend button */
#buddypress .friendship-button a,
#buddypress a.add-friend,
#buddypress a.remove-friend {
    background: var(--gradient);
    color: var(--white) !important;
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 600;
}

/* ── Footer ── */
.site-footer {
    background: var(--dark-purple);
    color: rgba(255,255,255,0.8);
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
}
.site-footer a { color: var(--pink); }

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero-section h1 { font-size: 2rem; }
    .section h2 { font-size: 1.6rem; }
    .main-nav { gap: 4px; }
    .main-nav a { padding: 6px 10px; font-size: 0.9rem; }
}
