/* Home Page Styles */

html, body {
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

body {
    margin: 0;
    padding: 0;
    padding-top: 80px;
    min-height: 100vh;
}

main.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    overflow: visible !important;
    height: auto !important;
    display: block;
}

/* Top Navigation Bar */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: var(--glass-white);
    backdrop-filter: blur(var(--blur-amount)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--blur-amount)) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft), 0 0 30px rgba(0, 255, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1000;
}

.nav-left, .nav-right {
    flex: 0 0 auto;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

/* User Profile Button */
.user-profile-btn {
    position: relative;
    cursor: pointer;
    transition: all var(--transition-normal);
    width: 60px;
    height: 60px;
    display: block;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
}

.user-profile-btn:hover {
    transform: scale(1.05);
}

.profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #00FF00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
    object-fit: cover;
    display: block;
}

/* Online indicator removed as per user request */

/* Banner Ad */
.banner-ad {
    background: var(--glass-white);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 12px 20px;
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ad-label {
    font-size: 10px;
    color: var(--gray-dark);
    text-transform: uppercase;
    font-weight: 600;
}

.ad-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.ad-icon {
    font-size: 24px;
}

.ad-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
}

.ad-btn {
    padding: 6px 16px;
    background: linear-gradient(135deg, #00FF00, #00FF00);
    color: var(--black);
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.ad-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

/* App Logo Button */
.app-logo-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 16px;
    background: var(--glass-white);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.app-logo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.logo-icon {
    font-size: 28px;
    margin-right: 8px;
}

.logo-icon-img {
    width: 44px;
    height: 44px;
    margin-right: 8px;
    filter: drop-shadow(0 0 8px rgba(0, 255, 0, 0.5));
    transition: all 0.3s ease;
}

.app-logo-btn:hover .logo-icon-img {
    filter: drop-shadow(0 0 16px rgba(0, 255, 0, 0.8));
    transform: scale(1.1);
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #00FF00;
}

/* Dropdown Menu */
.dropdown-menu {
    position: fixed;
    top: 80px;
    background: var(--glass-white);
    backdrop-filter: blur(var(--blur-amount)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--blur-amount)) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft), 0 0 30px rgba(0, 255, 0, 0.2);
    padding: 12px;
    min-width: 260px;
    max-height: 80vh;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    z-index: 999;
}

.user-menu {
    left: 24px;
}

.app-menu {
    right: 24px;
    min-width: 280px;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 8px;
}

.menu-profile-pic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #00FF00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.menu-user-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 4px;
}

.menu-user-info p {
    font-size: 13px;
    color: var(--gray-dark);
}

.menu-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 8px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    color: #00FF00;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    font-size: 14px;
    font-weight: 500;
}

.menu-item:hover {
    background: var(--glass-tint);
    transform: translateX(4px);
}

.menu-item.active {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.2), rgba(0, 255, 0, 0.1));
    border-left: 3px solid #00FF00;
}

.menu-item-danger {
    color: #ff3b30;
}

.menu-icon {
    font-size: 18px;
}

.menu-section {
    margin-bottom: 8px;
}

.menu-section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px 4px;
    margin-bottom: 4px;
}

.status-badge {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.status-online {
    background: rgba(0, 255, 0, 0.2);
    color: #00FF00;
}

/* Activities Section */
.activities-section {
    margin-bottom: 32px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--black);
}

.create-activity-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #00FF00, #00FF00);
    color: var(--black);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.create-activity-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
}

.activities-container {
    background: var(--glass-white);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 16px;
}

/* Activities Scroll - Star Shapes */
.activities-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 8px 4px;
    scrollbar-width: thin;
    scrollbar-color: #00FF00 transparent;
}

.activities-scroll::-webkit-scrollbar {
    height: 6px;
}

.activities-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.activities-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #00FF00, #00FF00);
    border-radius: 10px;
}

.activity-star {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Star Shape */
.star-shape {
    width: 100px;
    height: 100px;
    position: relative;
    clip-path: polygon(
        50% 0%, 
        61% 35%, 
        98% 35%, 
        68% 57%, 
        79% 91%, 
        50% 70%, 
        21% 91%, 
        32% 57%, 
        2% 35%, 
        39% 35%
    );
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.star-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.create-star .star-content {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.2), rgba(0, 255, 0, 0.1));
    border: 2px dashed #00FF00;
}

.create-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.create-icon {
    font-size: 48px;
    color: #00FF00;
    font-weight: 300;
}

.activity-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-icon {
    font-size: 18px;
}

.activity-star:hover .star-shape {
    transform: scale(1.1) rotate(5deg);
    filter: brightness(1.1);
}

.activity-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--black);
    text-align: center;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Search Section */
.search-section {
    margin-bottom: 32px;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--glass-white);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 14px 20px;
    transition: all var(--transition-normal);
}

.search-container:focus-within {
    border-color: #00FF00;
    box-shadow: 0 0 0 3px rgba(0, 255, 0, 0.1), 0 0 20px rgba(0, 255, 0, 0.3);
}

.search-icon {
    font-size: 20px;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 15px;
    color: var(--black);
    font-weight: 500;
}

.search-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.search-filter-btn {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.search-filter-btn:hover {
    transform: rotate(90deg);
}

/* Messaging Section */
.messaging-section {
    margin-bottom: 32px;
}

.message-tabs {
    display: flex;
    gap: 8px;
}

.message-tab {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--black);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.message-tab:hover {
    background: var(--glass-tint);
}

.message-tab.active {
    background: linear-gradient(135deg, #00FF00, #00FF00);
    border-color: #00FF00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
}

/* Chats Container */
.chats-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--glass-white);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.chat-item:hover {
    transform: translateX(4px);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

.chat-item.team-chat {
    border-left: 3px solid #00FF00;
}

.chat-avatar-wrapper {
    position: relative;
    flex: 0 0 auto;
}

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

.online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #00FF00;
    border: 2px solid var(--white-pure);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.6);
    animation: glowPulse 2s ease-in-out infinite;
}

.team-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00FF00, #00FF00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--glass-border);
}

.team-icon {
    font-size: 24px;
    color: var(--black);
}

.chat-details {
    flex: 1;
    min-width: 0;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.chat-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--black);
}

.chat-time {
    font-size: 12px;
    color: var(--gray-dark);
}

.chat-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.chat-message {
    font-size: 14px;
    color: var(--gray-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.unread-badge {
    background: linear-gradient(135deg, #00FF00, #00FF00);
    color: var(--black);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.4);
    flex-shrink: 0;
}


/* Activity Viewer Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    padding: 20px;
    overflow-y: auto;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: -1;
}

.modal-content {
    background: var(--glass-white);
    backdrop-filter: blur(var(--blur-amount)) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 32px;
    max-width: 600px;
    width: 100%;
    position: relative;
    animation: scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.activity-modal-content {
    max-width: 700px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 2;
}

.modal-close:hover {
    background: #00FF00;
    color: var(--black);
    transform: rotate(90deg);
}

.activity-viewer {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.activity-media {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.activity-image {
    width: 100%;
    display: block;
}

.activity-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #00FF00;
}

.author-details h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--black);
}

.author-details p {
    font-size: 12px;
    color: var(--gray-dark);
}

.activity-caption {
    font-size: 14px;
    color: var(--black);
    margin-bottom: 12px;
}

.activity-stats {
    display: flex;
    gap: 20px;
    padding: 12px;
    background: rgba(0, 255, 0, 0.05);
    border-radius: var(--radius-md);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
}

.stat-icon {
    font-size: 18px;
}

.activity-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    flex: 1;
    padding: 12px;
    background: var(--glass-white);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.action-btn:hover {
    background: rgba(0, 255, 0, 0.1);
    border-color: #00FF00;
    transform: translateY(-2px);
}

.rate-btn:hover {
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.promote-btn {
    background: linear-gradient(135deg, #00FF00, #00FF00);
    color: var(--black);
}

.promote-btn:hover {
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.5);
}

/* Star Rating */
.rating-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 12px;
}

.star-rating {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.star {
    font-size: 36px;
    cursor: pointer;
    transition: all var(--transition-fast);
    filter: grayscale(100%);
    opacity: 0.3;
}

.star.active,
.star:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.2);
}

.review-input {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--black);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 16px;
}

.review-input:focus {
    outline: none;
    border-color: #00FF00;
    box-shadow: 0 0 0 3px rgba(0, 255, 0, 0.1);
}

.rating-actions {
    display: flex;
    gap: 12px;
}

.btn-submit-rating,
.btn-promote {
    flex: 1;
    padding: 12px 20px;
    background: linear-gradient(135deg, #00FF00, #00FF00);
    color: var(--black);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.btn-submit-rating:hover,
.btn-promote:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
}

.btn-promote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Reviews Section */
.reviews-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 16px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.review-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
}

.review-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex-shrink: 0;
}

.review-content {
    flex: 1;
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.review-author {
    font-size: 13px;
    font-weight: 700;
    color: var(--black);
}

.review-rating {
    font-size: 12px;
}

.review-text {
    font-size: 13px;
    color: var(--gray-dark);
    margin-bottom: 6px;
}

.review-time {
    font-size: 11px;
    color: var(--gray-dark);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        padding: 16px;
    }
    
    .top-nav {
        padding: 0 16px;
    }
    
    .nav-center {
        display: none;
    }
    
    .banner-ad {
        display: none;
    }
    
    .message-tabs {
        flex-wrap: wrap;
    }
    
    .star-shape {
        width: 80px;
        height: 80px;
    }
}
