/*
Theme Name: RedRose Girl Profile
Theme URI: https://example.com/redrose-profile
Author: Antigravity
Author URI: https://example.com
Description: A stunning, red-themed responsive WordPress profile theme for showcasing video posts with stylish bluish blur overlays, call-to-actions, and micro-interactions.
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: redrose-profile
*/

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- Design System & CSS Variables --- */
:root {
    --bg-dark: #090506;
    --bg-card: rgba(26, 15, 18, 0.65);
    --bg-glass: rgba(255, 255, 255, 0.03);
    
    --primary-red: #e11d48;
    --primary-red-hover: #f43f5e;
    --primary-red-glow: rgba(225, 29, 72, 0.4);
    
    --secondary-dark: #120b0d;
    --border-color: rgba(225, 29, 72, 0.15);
    --border-color-hover: rgba(225, 29, 72, 0.4);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Global Reset & Scrollbar --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(225, 29, 72, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(225, 29, 72, 0.05) 0%, transparent 40%);
    background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(225, 29, 72, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-red);
}

/* --- Layout Container --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* --- Header Section --- */
.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 35px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Profile Photo Styling */
.profile-avatar-container {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-red);
    box-shadow: 0 0 20px var(--primary-red-glow);
    transition: var(--transition-smooth);
}

.profile-avatar-container:hover .profile-avatar {
    transform: scale(1.05) rotate(3deg);
    box-shadow: 0 0 25px rgba(225, 29, 72, 0.7);
}

/* Online status dot */
.status-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background-color: #22c55e;
    border: 3px solid var(--secondary-dark);
    border-radius: 50%;
    box-shadow: 0 0 10px #22c55e;
    animation: pulseGlow 2s infinite;
}

/* Profile Info Styling */
.profile-info {
    flex-grow: 1;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.profile-name {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #ffffff, #fdd2d9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(225, 29, 72, 0.15);
    color: var(--primary-red);
    border: 1px solid rgba(225, 29, 72, 0.3);
    border-radius: 30px;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-username {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--primary-red-hover);
    font-weight: 500;
    margin-bottom: 12px;
}

.profile-bio {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    max-width: 600px;
}

/* Profile Actions buttons - Follow, Message, Join Live */
.profile-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red), #9f1239);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-red-hover), #be123c);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: rgba(225, 29, 72, 0.08);
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

/* 3rd Button: JOIN LIVE BUTTON (Greenish glow style with alert red pulsing dot) */
.btn-live {
    background: linear-gradient(135deg, #10b981, #047857);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-live:hover {
    background: linear-gradient(135deg, #34d399, #059669);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-live::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 8px #ef4444;
    animation: alertPulse 1.2s infinite;
}

/* --- Stats display inside profile --- */
.profile-stats {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

.stat-item {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.stat-value {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin-right: 5px;
}

/* --- Posts Section Grid --- */
.section-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-red);
    border-radius: 2px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    animation: fadeInUp 0.8s ease-out;
}

/* --- Blurry Video Card --- */
.video-card {
    position: relative;
    aspect-ratio: 9 / 16;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background-color: var(--secondary-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
    filter: blur(25px) brightness(0.65); /* High Blur for girl photos */
}

/* Video Card Blur Overlay */
.video-blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.45) 0%, rgba(30, 41, 59, 0.7) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    opacity: 1;
    transition: var(--transition-smooth);
}

/* Play Icon */
.play-btn-circle {
    width: 54px;
    height: 54px;
    background: rgba(225, 29, 72, 0.1);
    border: 2px solid var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 0 15px rgba(225, 29, 72, 0.4);
    transition: var(--transition-smooth);
}

.play-icon {
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 14px solid #ffffff;
    margin-left: 4px; /* Align triangle */
}

/* Call-to-action Hindi text styling */
.hindi-cta-text {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}

/* Hover States for Video Card */
.video-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-red-hover);
    box-shadow: 0 10px 25px rgba(225, 29, 72, 0.35);
}

.video-card:hover .video-thumbnail {
    transform: scale(1.05);
}

.video-card:hover .play-btn-circle {
    transform: scale(1.15);
    background: var(--primary-red);
    box-shadow: 0 0 25px rgba(225, 29, 72, 0.8);
}

.video-card:hover .hindi-cta-text {
    color: var(--primary-red-hover);
}

/* --- Shared Overlay Backdrop --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 5, 6, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    z-index: 10;
}

.modal-close:hover {
    background: var(--primary-red);
    color: #fff;
}

/* --- Dynamic Chat Box Interface --- */
.chat-container {
    background: var(--secondary-dark);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    max-width: 440px;
    width: 100%;
    height: 520px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(225, 29, 72, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.modal-overlay.active .chat-container {
    transform: scale(1);
}

.chat-header {
    background: rgba(225, 29, 72, 0.1);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-red);
    object-fit: cover;
}

.chat-header-details {
    flex-grow: 1;
}

.chat-header-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.chat-header-status {
    font-size: 0.75rem;
    color: #22c55e;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.chat-header-status::before {
    content: '';
    width: 7px;
    height: 7px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px #22c55e;
}

/* Chat message window */
.chat-body {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: radial-gradient(circle at top right, rgba(225, 29, 72, 0.03), transparent 60%);
}

.msg-wrapper {
    display: flex;
    width: 100%;
}

.msg-wrapper.received {
    justify-content: flex-start;
}

.msg-wrapper.sent {
    justify-content: flex-end;
}

.msg-bubble {
    max-width: 75%;
    padding: 10px 16px;
    font-size: 0.9rem;
    line-height: 1.45;
}

.msg-wrapper.received .msg-bubble {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-radius: 4px 18px 18px 18px;
}

.msg-wrapper.sent .msg-bubble {
    background: linear-gradient(135deg, var(--primary-red), #9f1239);
    color: #ffffff;
    border-radius: 18px 4px 18px 18px;
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.25);
}

.chat-typing-indicator {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    display: none;
    align-items: center;
    gap: 4px;
}

.dot-typing {
    width: 5px;
    height: 5px;
    background-color: var(--text-muted);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}
.dot-typing:nth-child(2) { animation-delay: 0.2s; }
.dot-typing:nth-child(3) { animation-delay: 0.4s; }

/* Chat input bar */
.chat-footer {
    padding: 15px 20px;
    background: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 10px;
}

.chat-input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 15px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
}

.chat-input:focus {
    border-color: var(--primary-red);
    background: rgba(255, 255, 255, 0.08);
}

.chat-send-btn {
    background: var(--primary-red);
    color: #fff;
    border: none;
    border-radius: 12px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.chat-send-btn:hover {
    background: var(--primary-red-hover);
    transform: scale(1.05);
}

.chat-send-btn svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

/* --- Sleek Video Player Box Modal --- */
.player-container {
    background: #000;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    max-width: 400px;
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .player-container {
    transform: scale(1);
}

.player-screen {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.player-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px) brightness(0.4);
    z-index: 1;
}

.player-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.player-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* Center Play Screen Area */
.player-center-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: auto;
    margin-bottom: auto;
    width: 100%;
}

.player-play-btn {
    width: 76px;
    height: 76px;
    background: var(--primary-red);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 30px var(--primary-red-glow);
    transition: var(--transition-smooth);
}

.player-play-btn:hover {
    transform: scale(1.1);
    background: var(--primary-red-hover);
    box-shadow: 0 0 40px rgba(225, 29, 72, 0.7);
}

.player-play-btn .play-icon {
    border-left-width: 20px;
    border-top-width: 12px;
    border-bottom-width: 12px;
    margin-left: 6px;
}

.player-text-title {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.player-text-sub {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 5px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* Helper play guidelines text inside the player */
.player-text-guide {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    margin-top: 8px;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    line-height: 1.4;
    background: rgba(225, 29, 72, 0.15);
    border: 1px solid rgba(225, 29, 72, 0.3);
    padding: 6px 15px;
    border-radius: 20px;
    animation: alertPulse 2s infinite;
}

/* Simulated Network Error screen */
.player-error-state {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    margin-top: auto;
    margin-bottom: auto;
    width: 100%;
}

.error-badge-icon {
    width: 60px;
    height: 60px;
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.error-badge-icon svg {
    width: 26px;
    height: 26px;
    fill: #ef4444;
}

.error-title-hindi {
    color: #fca5a5;
    font-weight: 600;
    font-size: 1.15rem;
    line-height: 1.5;
}

.error-title-english {
    color: #cbd5e1;
    font-size: 0.85rem;
    margin-top: 5px;
    line-height: 1.4;
}

/* Simulated Infinite Loader */
.player-loader-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: auto;
    margin-bottom: auto;
}

.player-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(225, 29, 72, 0.2);
    border-top: 4px solid var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 15px rgba(225, 29, 72, 0.3);
}

.loader-text {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* Video bottom control bar template */
.player-controls-bar {
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 10px 15px 5px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
}

.timeline-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    position: relative;
}

.timeline-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--primary-red);
    border-radius: 2px;
}

.controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Floating Timed Alert (Popup Bottom-Right) --- */
.floating-alert {
    position: fixed;
    bottom: -100px; /* Start hidden below screen */
    right: 30px;
    background: rgba(26, 15, 18, 0.85);
    border: 1px solid var(--primary-red);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(225, 29, 72, 0.2);
    z-index: 99;
    max-width: 340px;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), bottom 0.5s ease;
}

.floating-alert.active {
    bottom: 30px;
}

.floating-alert:hover {
    transform: scale(1.03);
    border-color: var(--primary-red-hover);
    box-shadow: 0 12px 35px rgba(225, 29, 72, 0.4);
}

.alert-indicator {
    position: relative;
    width: 14px;
    height: 14px;
    background-color: var(--primary-red);
    border-radius: 50%;
    flex-shrink: 0;
    animation: alertPulse 1.5s infinite;
}

.alert-content {
    flex-grow: 1;
}

.alert-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.3;
    font-family: var(--font-heading);
}

.alert-desc {
    color: var(--text-secondary);
    font-size: 0.78rem;
    margin-top: 2px;
}

.alert-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0 2px;
    transition: var(--transition-smooth);
}

.alert-close:hover {
    color: var(--primary-red);
}

/* --- Floating Timed Chat Alert Popup (Attention-Grabber Bottom-Left) --- */
.chat-notification-alert {
    position: fixed;
    bottom: -120px; /* Start hidden */
    left: 30px;
    background: rgba(26, 15, 18, 0.85);
    border: 1px solid var(--primary-red);
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(225, 29, 72, 0.15);
    z-index: 99;
    max-width: 320px;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), bottom 0.5s ease;
}

.chat-notification-alert.active {
    bottom: 30px;
}

.chat-notification-alert:hover {
    transform: scale(1.03);
    border-color: var(--primary-red-hover);
    box-shadow: 0 12px 35px rgba(225, 29, 72, 0.35);
}

.notification-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--primary-red);
    object-fit: cover;
    flex-shrink: 0;
}

.notification-info {
    flex-grow: 1;
    overflow: hidden;
}

.notification-name {
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.notification-dot {
    width: 7px;
    height: 7px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 6px #22c55e;
    animation: pulseGlow 1.5s infinite;
}

.notification-text {
    color: var(--text-secondary);
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
    font-style: italic;
}

.notification-badge-count {
    background-color: var(--primary-red);
    color: #ffffff;
    border-radius: 10px;
    padding: 2px 7px;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
    animation: alertPulse 1.5s infinite;
}

/* --- Keyframe Animations --- */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

@keyframes alertPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.8);
        transform: scale(0.95);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(225, 29, 72, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0);
        transform: scale(0.95);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

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

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

/* --- Responsive Layout Adjustments --- */
@media (max-width: 992px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .profile-card {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
        gap: 20px;
    }
    
    .profile-name-row {
        justify-content: center;
    }
    
    .profile-actions {
        justify-content: center;
    }
    
    .profile-stats {
        justify-content: center;
    }
    
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .container {
        padding: 20px 15px;
    }
    
    .profile-avatar {
        width: 120px;
        height: 120px;
    }
    
    .floating-alert {
        right: 15px;
        left: 15px;
        bottom: -120px;
        max-width: calc(100% - 30px);
    }
    
    .floating-alert.active {
        bottom: 115px; /* Shifted up on mobile to stack above the chat notification alert */
    }

    .chat-notification-alert {
        left: 15px;
        right: 15px;
        bottom: -120px;
        max-width: calc(100% - 30px);
    }

    .chat-notification-alert.active {
        bottom: 15px;
    }
}

@media (max-width: 480px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .video-card {
        border-radius: 12px;
    }
    
    .play-btn-circle {
        width: 44px;
        height: 44px;
        margin-bottom: 8px;
    }
    
    .play-icon {
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
        border-left: 10px solid #ffffff;
    }
    
    .hindi-cta-text {
        font-size: 0.8rem;
    }
    
    .profile-name {
        font-size: 1.8rem;
    }

    .profile-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .profile-actions .btn {
        width: 100%;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

