/* =========================================
   1. GLOBAL DEFAULTS & UTILITIES
   ========================================= */
:root {
    --primary-color: #764ba2;
    --secondary-color: #667eea;
    --text-dark: #333;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --card-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* =========================================
   2. LANDING PAGE (index.php)
   ========================================= */
.hero-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: white;
    transform: skewY(-3deg);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.btn-light-custom {
    background: white;
    color: var(--primary-color);
    font-weight: bold;
    padding: 12px 30px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-light-custom:hover {
    background: #f0f0f0;
    color: #5a387a;
    transform: translateY(-2px);
}

/* =========================================
   3. AUTH PAGES (login.php / register.php)
   ========================================= */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-card {
    max-width: 400px;
    width: 100%;
    border: none;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    padding: 2rem;
    background: white;
}

/* =========================================
   4. DASHBOARD (user/dashboard.php)
   ========================================= */
.dashboard-sidebar {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.avatar-preview {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background-color: #eee;
}

/* =========================================
   5. PUBLIC PROFILE CARD (profile.php)
   ========================================= */
/* Mobile Container Wrapper */
.mobile-wrapper {
    width: 100%;
    max-width: 480px;
    background-color: white;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    position: relative;
    margin: 0 auto;
}

/* Header Gradient */
.profile-header {
    background: linear-gradient(135deg, var(--user-theme, #333), #2c3e50);
    height: 150px;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    position: relative;
    margin-bottom: 70px;
}

/* Avatar positioning */
.profile-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 5px solid white;
    object-fit: cover;
    position: absolute;
    bottom: -65px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Profile Text */
.profile-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
}

.profile-job {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

.profile-company {
    color: var(--user-theme, #333);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Buttons */
.btn-save-contact {
    background-color: var(--user-theme, #333);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    width: 80%;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
}

.btn-save-contact:hover {
    opacity: 0.9;
    color: white;
}

/* Contact List Items */
.contact-item {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 15px;
    margin: 10px 20px;
    border-radius: 12px;
    color: #333;
    transition: transform 0.2s;
}

.contact-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--user-theme, #333);
}

/* Social Grid */
.social-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 20px;
    margin-top: 20px;
    border-top: 1px solid #eee;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: transform 0.2s;
}

.social-btn:hover {
    transform: translateY(-3px);
}

/* Brand Colors */
.bg-facebook { background: #1877f2; }
.bg-instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.bg-linkedin { background: #0077b5; }
.bg-whatsapp { background: #25d366; }
.bg-twitter { background: #1da1f2; }
.bg-youtube { background: #ff0000; }