/**
 * AskConnexion - Frontend Styles
 */

/* Variables */
:root {
    --primary-color: #0066cc;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Profils Grid */
.askconnexion-profiles-wrapper {
    margin: 20px 0;
}

.askconnexion-profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.profile-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.profile-avatar {
    position: relative;
    margin-bottom: 15px;
}

.profile-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.verified-badge {
    position: absolute;
    top: 0;
    right: calc(50% - 60px);
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.profile-name {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0 5px;
    color: var(--dark-color);
}

.profile-profession {
    color: var(--secondary-color);
    font-size: 14px;
    margin: 5px 0;
}

.profile-location {
    color: var(--secondary-color);
    font-size: 12px;
    margin: 5px 0;
}

.profile-rating {
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.stars {
    color: #ffc107;
    font-size: 14px;
}

.reviews {
    color: var(--secondary-color);
    font-size: 12px;
}

/* Profil Detail */
.askconnexion-profile-detail {
    margin: 20px 0;
}

.profile-header {
    position: relative;
    margin-bottom: 30px;
}

.profile-cover {
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius);
}

.profile-info {
    position: relative;
    margin-top: -80px;
    text-align: center;
    padding: 0 20px;
}

.profile-avatar-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: var(--box-shadow);
    object-fit: cover;
}

.profile-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
}

.profile-section {
    margin-bottom: 30px;
}

.profile-section h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--dark-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-badge {
    background: var(--light-color);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid var(--primary-color);
}

.profile-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary:hover {
    background: #0052a3;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Search Bar */
.askconnexion-search-bar {
    position: relative;
    margin: 20px 0;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--light-color);
    border-radius: var(--border-radius);
    font-size: 16px;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-button {
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 10px;
}

.results-section {
    padding: 15px;
}

.results-section h4 {
    margin: 0 0 10px;
    color: var(--secondary-color);
    font-size: 14px;
    text-transform: uppercase;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

.result-item:hover {
    background: var(--light-color);
}

.result-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.result-info strong {
    display: block;
    color: var(--dark-color);
}

.result-info p {
    margin: 0;
    font-size: 12px;
    color: var(--secondary-color);
}

/* Filters */
.askconnexion-filters {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 20px 0;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--dark-color);
}

.filter-select,
.filter-input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--light-color);
    border-radius: var(--border-radius);
    font-size: 14px;
}

.filter-range {
    width: 100%;
}

/* Dashboard */
.askconnexion-dashboard {
    margin: 20px 0;
}

.dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.widget {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.widget h3 {
    font-size: 14px;
    color: var(--secondary-color);
    margin: 0 0 10px;
    text-transform: uppercase;
}

.widget-stat {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
}

/* Messages */
.askconnexion-messages {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    margin: 20px 0;
    min-height: 500px;
}

.messages-sidebar {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
}

.messages-content {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
}

.empty-state {
    text-align: center;
    color: var(--secondary-color);
    padding: 50px 20px;
}

/* Subscription Plans */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.plan-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

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

.plan-card h3 {
    font-size: 24px;
    margin: 0 0 15px;
    color: var(--dark-color);
}

.plan-price {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 15px 0;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--light-color);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--light-color);
    border-radius: var(--border-radius);
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Referral */
.referral-code-box {
    background: var(--light-color);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 20px 0;
}

.referral-code {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 15px 0;
    letter-spacing: 3px;
}

.referral-link input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--light-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    margin-top: 10px;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-box {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.stat-box h3 {
    font-size: 14px;
    color: var(--secondary-color);
    margin: 0 0 10px;
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .askconnexion-profiles-grid {
        grid-template-columns: 1fr;
    }
    
    .askconnexion-messages {
        grid-template-columns: 1fr;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
}
