/* AdultTok - Beautiful Modern UI Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ec4899;
    --primary-dark: #db2777;
    --secondary: #8b5cf6;
    --dark: #0f172a;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: var(--gray-900);
    color: white;
    line-height: 1.6;
}

/* Navigation Styles */
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--gray-400);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: var(--primary);
    background-color: rgba(236, 72, 153, 0.1);
}

/* Button Styles */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.4);
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: white;
    text-decoration: none;
    border-radius: 9999px;
    border: 2px solid var(--gray-700);
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: var(--gray-800);
    border-color: var(--gray-600);
}

/* Video Feed Styles */
.video-feed {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

.video-card {
    background-color: var(--gray-800);
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.video-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
}

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

.avatar-sm {
    width: 32px;
    height: 32px;
}

.video-info h3 {
    font-size: 1rem;
    font-weight: 600;
}

.video-info p {
    font-size: 0.875rem;
    color: var(--gray-400);
}

.video-container {
    position: relative;
    width: 100%;
    background-color: black;
    aspect-ratio: 9/16;
}

.video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-actions {
    display: flex;
    justify-content: space-around;
    padding: 1rem;
    border-top: 1px solid var(--gray-700);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: transparent;
    color: var(--gray-400);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.action-btn:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

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

.action-btn svg {
    width: 20px;
    height: 20px;
}

/* Comments Section */
.comments-section {
    padding: 1rem;
}

.comment-input {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.comment-input input {
    flex: 1;
    padding: 0.75rem 1rem;
    background-color: var(--gray-700);
    border: 1px solid var(--gray-600);
    border-radius: 9999px;
    color: white;
    font-size: 0.875rem;
}

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

.comment-input button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.comment-input button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}

.comment-input button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.comment {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    animation: slideIn 0.3s ease-out;
}

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

.comment-content {
    flex: 1;
}

.comment-author {
    font-weight: 600;
    color: white;
    font-size: 0.875rem;
}

.comment-text {
    color: var(--gray-300);
    font-size: 0.875rem;
    margin: 0.25rem 0;
}

.comment-time {
    color: var(--gray-500);
    font-size: 0.75rem;
}

/* Messages */
.messages-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    height: calc(100vh - 64px);
}

.conversations-list {
    background-color: var(--gray-800);
    border-right: 1px solid var(--gray-700);
    overflow-y: auto;
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-700);
    cursor: pointer;
    transition: all 0.2s;
}

.conversation-item:hover {
    background-color: var(--gray-700);
}

.conversation-item.active {
    background-color: rgba(236, 72, 153, 0.1);
}

.messages-area {
    display: flex;
    flex-direction: column;
    background-color: var(--gray-900);
}

.messages-header {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-700);
    background-color: var(--gray-800);
}

.messages-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    gap: 0.75rem;
    max-width: 70%;
    animation: messageSlide 0.3s ease-out;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.message.sent {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message.sent .message-bubble {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.message-bubble {
    padding: 0.75rem 1rem;
    background-color: var(--gray-700);
    border-radius: 1rem;
    max-width: 100%;
}

.message-input-area {
    padding: 1rem;
    border-top: 1px solid var(--gray-700);
    background-color: var(--gray-800);
}

.message-input-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.message-input-wrapper input {
    flex: 1;
    padding: 0.75rem 1rem;
    background-color: var(--gray-700);
    border: 1px solid var(--gray-600);
    border-radius: 9999px;
    color: white;
}

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

.typing-indicator {
    padding: 0.5rem 1rem;
    color: var(--gray-500);
    font-size: 0.875rem;
    font-style: italic;
    display: none;
}

.typing-indicator.show {
    display: block;
}

/* Notifications */
.notification-panel {
    position: absolute;
    top: 100%;
    right: 0;
    width: 360px;
    background-color: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 50;
}

.notification {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-700);
    transition: all 0.2s;
    animation: slideIn 0.3s ease-out;
}

.notification:hover {
    background-color: var(--gray-700);
}

.notification.unread {
    background-color: rgba(236, 72, 153, 0.05);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-primary {
    color: var(--primary);
}

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

/* Loading Spinner */
.spinner {
    border: 3px solid var(--gray-700);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

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

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

    .conversations-list {
        display: none;
    }

    .video-feed {
        padding: 0.5rem;
    }

    .notification-panel {
        width: 100vw;
        right: -1rem;
    }
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--gray-800);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border-left: 4px solid var(--primary);
    animation: toastSlide 0.3s ease-out;
    z-index: 9999;
}

@keyframes toastSlide {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.success {
    border-left-color: #10b981;
}

.toast.error {
    border-left-color: #ef4444;
}

.toast.info {
    border-left-color: #3b82f6;
}
