/* LinkUp254 - Modern Dating App Styles */

:root {
    --primary: #ff4b6e;
    --primary-dark: #e63956;
    --secondary: #6c5ce7;
    --accent: #fd79a8;
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #ff6b6b;
    --dark: #2d3436;
    --light: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, #ff4b6e 0%, #ff8e53 100%);
    --gradient-secondary: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    --gradient-love: linear-gradient(135deg, #ff4b6e 0%, #fd79a8 50%, #a29bfe 100%);
    --shadow-soft: 0 5px 20px rgba(0,0,0,0.1);
    --shadow-strong: 0 10px 40px rgba(0,0,0,0.15);
    --border-radius: 15px;
}

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

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

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: #FF4B6E !important;
}

.bg-gradient-secondary {
    background: var(--gradient-secondary) !important;
}

.bg-gradient-love {
    background: var(--gradient-love) !important;
}

/* Navbar */
.navbar {
    padding: 15px 0;
    box-shadow: var(--shadow-soft);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-2px);
}

/* Main Content */
.main-content {
    padding-top: 100px;
    min-height: 100vh;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-weight: 600;
}

/* Buttons */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 75, 110, 0.4);
    background: var(--gradient-primary);
}

.btn-secondary {
    background: var(--gradient-secondary);
    border: none;
    border-radius: 25px;
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 25px;
}

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

.btn-love {
    background: var(--gradient-love);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
}

/* Forms */
.form-control {
    border-radius: 10px;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 75, 110, 0.1);
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
}

/* Profile Cards */
.profile-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: white;
}

.profile-card .profile-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.profile-card .profile-info {
    padding: 15px;
}

.profile-card .online-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 15px;
    height: 15px;
    background: var(--success);
    border-radius: 50%;
    border: 3px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* Post Cards */
.post-card {
    background: white;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    overflow: hidden;
}

.post-header {
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 12px;
}

.post-header img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.post-header .post-user-info h6 {
    margin: 0;
    font-weight: 600;
}

.post-header .post-user-info small {
    color: #888;
}

.post-content {
    padding: 0 15px 15px;
}

.post-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.post-actions {
    display: flex;
    padding: 15px;
    gap: 20px;
    border-top: 1px solid #f0f0f0;
}

.post-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 20px;
}

.post-action-btn:hover {
    background: #f8f9fa;
    color: var(--primary);
}

.post-action-btn.liked {
    color: var(--primary);
}

.post-action-btn i {
    font-size: 1.2rem;
}

/* Stories */
.stories-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 15px;
    scrollbar-width: none;
}

.stories-container::-webkit-scrollbar {
    display: none;
}

.story-item {
    flex-shrink: 0;
    text-align: center;
    cursor: pointer;
}

.story-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    padding: 3px;
    background: white;
}

.story-avatar.add-story {
    border: 3px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.story-username {
    font-size: 12px;
    margin-top: 5px;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Chat Styles */
.chat-widget {
    position: fixed;
    bottom: 0;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.chat-window {
    width: 340px;
    height: 450px;
    background: white;
    border-radius: 15px 15px 0 0;
    box-shadow: var(--shadow-strong);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background: var(--gradient-primary);
    color: white;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header .user-info img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-header .actions button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #f8f9fa;
}

.message {
    max-width: 80%;
    margin-bottom: 10px;
    padding: 10px 15px;
    border-radius: 18px;
    word-wrap: break-word;
}

.message.sent {
    background: var(--gradient-primary);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.message.received {
    background: white;
    border-bottom-left-radius: 5px;
}

.message .time {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 5px;
    display: block;
}

.chat-input {
    display: flex;
    padding: 10px;
    gap: 10px;
    background: white;
    border-top: 1px solid #eee;
}

.chat-input input {
    flex: 1;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 10px 15px;
    outline: none;
}

.chat-input button {
    background: var(--gradient-primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
}

/* Messages List */
.message-list-item {
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.message-list-item:hover {
    background: #f8f9fa;
}

.message-list-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.message-list-item .info {
    flex: 1;
}

.message-list-item .info h6 {
    margin: 0;
    font-weight: 600;
}

.message-list-item .info p {
    margin: 0;
    font-size: 14px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.message-list-item .unread-badge {
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

/* Online Users */
.online-users {
    background: white;
    border-radius: var(--border-radius);
    padding: 15px;
}

.online-user-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.online-user-item:last-child {
    border-bottom: none;
}

.online-user-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.online-indicator {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    margin-left: auto;
}

/* Coin Badge */
.coin-badge {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    color: #8b4513;
}

/* Modal Enhancements */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
}

.modal-header {
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* Video Call */
.video-call-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a2e;
    z-index: 2000;
    display: none;
}

.video-call-container.active {
    display: flex;
    flex-direction: column;
}

.remote-video {
    flex: 1;
    background: #16213e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remote-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.local-video {
    position: absolute;
    bottom: 100px;
    right: 20px;
    width: 150px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid white;
}

.local-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.call-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.call-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.call-btn:hover {
    transform: scale(1.1);
}

.call-btn.end-call {
    background: var(--danger);
}

.call-btn.mute {
    background: rgba(255,255,255,0.2);
}

.call-btn.mute.active {
    background: var(--warning);
}

/* Responsive */
@media (max-width: 991px) {
    .navbar-collapse {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #ff4b6e 0%, #ff8e53 100%);
        padding: 20px;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        z-index: 1050;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }
    
    .navbar-collapse .nav-link {
        padding: 12px 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .navbar-collapse .dropdown-menu {
        background: rgba(255,255,255,0.1);
        border: none;
    }
    
    .navbar-collapse .dropdown-item {
        color: white;
    }
    
    .navbar-toggler {
        padding: 8px 12px;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding-top: 80px;
        padding-bottom: 20px;
    }
    
    .chat-window {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }
    
    .chat-widget {
        right: 0;
        left: 0;
    }
    
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .profile-card .profile-image {
        height: 180px;
    }
    
    .stories-container {
        padding: 10px;
    }
    
    .story-avatar {
        width: 60px;
        height: 60px;
    }
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-love);
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow-strong);
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 30px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Landing Page */
.hero-section {
    min-height: 100vh;
    background: var(--gradient-love);
    display: flex;
    align-items: center;
    padding: 100px 0;
}

.hero-content {
    color: white;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* Featured Badge */
.featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: #8b4513;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Custom Scrollbar - Sweet Theme */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #fff5f7 0%, #ffeef1 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff4b6e 0%, #ff8e53 100%);
    border-radius: 10px;
    border: 2px solid #fff5f7;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #e63956 0%, #e87e4a 100%);
    border-width: 1px;
}

::-webkit-scrollbar-corner {
    background: #fff5f7;
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #ff4b6e #fff5f7;
}

/* Selection Color */
::selection {
    background: rgba(255, 75, 110, 0.3);
    color: var(--dark);
}

::-moz-selection {
    background: rgba(255, 75, 110, 0.3);
    color: var(--dark);
}

/* Focus Styles - Sweet Theme */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Sweet Theme Link Colors */
a {
    color: var(--primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Sweet Background Patterns */
.bg-hearts {
    background-color: #fff5f7;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 6c-1.5-2-4-3-6.5-3C18 3 14 7 14 12.5c0 7 16 16.5 16 16.5s16-9.5 16-16.5C46 7 42 3 36.5 3 34 3 31.5 4 30 6z' fill='%23ff4b6e' fill-opacity='0.05'/%3E%3C/svg%3E");
}

/* Sweet Theme Shadows */
.shadow-sweet {
    box-shadow: 0 4px 15px rgba(255, 75, 110, 0.15), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.shadow-sweet-lg {
    box-shadow: 0 10px 40px rgba(255, 75, 110, 0.2), 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Sweet Theme Hover Effects */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 75, 110, 0.25);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(255, 75, 110, 0.4);
}

/* Sweet Theme Badges */
.badge-love {
    background: var(--gradient-love);
    color: white;
    font-weight: 500;
}

.badge-sweet {
    background: linear-gradient(135deg, #ffeef1 0%, #fff5f7 100%);
    color: var(--primary);
    border: 1px solid rgba(255, 75, 110, 0.2);
}

/* Sweet Theme Borders */
.border-sweet {
    border: 2px solid rgba(255, 75, 110, 0.2) !important;
}

.border-sweet-gradient {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #ff4b6e, #ff8e53) border-box;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

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

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
