/* ===== REVNET - MODERN PURPLE & BLACK THEME ===== */

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

:root {
    --primary: #9333ea;
    --primary-dark: #7e22ce;
    --primary-light: #c084fc;
    --secondary: #1a0033;
    --secondary-light: #2d0052;
    --background: #0f0015;
    --surface: #1a0033;
    --surface-light: #2d0052;
    --text-primary: #ffffff;
    --text-secondary: #c084fc;
    --border: #3d0066;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--background) 0%, var(--secondary) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== NAVBAR ===== */
.navbar {
    background: linear-gradient(90deg, var(--secondary) 0%, var(--secondary-light) 100%);
    border-bottom: 2px solid var(--primary);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(147, 51, 234, 0.2);
}

body {
    padding-top: 70px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.search-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    background: linear-gradient(135deg, #1a0033 0%, #2d0052 100%);
    border: 2px solid #9333ea;
    border-radius: 12px;
    padding: 12px 18px;
    flex: 1;
    max-width: 500px;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.2);
    transition: all 0.3s;
}

.search-bar:focus-within {
    border-color: #c084fc;
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.4);
    transform: translateY(-2px);
}

.search-bar input {
    background: transparent;
    border: none;
    color: #fff;
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.search-bar input:focus {
    outline: none;
    box-shadow: none;
}

.search-bar input::placeholder {
    color: #c084fc;
    opacity: 0.7;
}

.search-bar svg, .search-bar span {
    color: #9333ea;
    font-size: 18px;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2d0052 0%, #1a0033 100%);
    border: 2px solid #9333ea;
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.3);
}

.search-result-item {
    padding: 15px 18px;
    border-bottom: 1px solid #3d0066;
    cursor: pointer;
    transition: all 0.3s;
    color: #fff;
}

.search-result-item:hover {
    background: #3d0066;
    border-left: 3px solid #c084fc;
    padding-left: 15px;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item strong {
    color: #c084fc;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-light);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 2px;
}

/* ===== CONTAINERS ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== BUTTONS ===== */
button, .btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 1rem;
}

button:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(147, 51, 234, 0.4);
}

button:active, .btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--surface-light);
    border: 2px solid var(--primary);
    color: var(--primary-light);
}

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

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* ===== INPUT FIELDS ===== */
input, textarea, select {
    background: var(--surface-light);
    border: 2px solid var(--border);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.3);
    background: var(--surface);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* ===== CARDS ===== */
.card {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-light) 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.1);
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.2);
    border-color: var(--primary);
}

/* ===== MODALS ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-light) 100%);
    border: 2px solid var(--primary);
    border-radius: 16px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(147, 51, 234, 0.3);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    transition: all 0.3s;
    z-index: 2001;
}

.modal-close:hover {
    background: var(--primary-light);
    transform: rotate(90deg);
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
}

/* ===== HEADINGS ===== */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 900;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

/* ===== POSTS & FEED ===== */
.post-card {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-light) 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.1);
    transition: all 0.3s;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.2);
    border-color: var(--primary);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.post-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.post-user-info h4 {
    margin: 0;
    font-size: 1rem;
}

.post-user-info small {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.post-content {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.post-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
    max-height: 400px;
    object-fit: cover;
}

.post-video {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
    max-height: 500px;
    background: #000;
}

.post-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.post-action-btn {
    flex: 1;
    padding: 0.75rem;
    background: var(--surface-light);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

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

.post-action-btn.liked {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: #ef4444;
}

/* ===== COMMENTS ===== */
.comments-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.comment {
    background: var(--surface-light);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border-left: 3px solid var(--primary);
}

.comment-author {
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 0.25rem;
}

.comment-text {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.comment-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===== GRID LAYOUTS ===== */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(90deg, var(--secondary) 0%, var(--secondary-light) 100%);
    border-top: 2px solid var(--primary);
    padding: 2rem;
    margin-top: 4rem;
    text-align: center;
    color: var(--text-secondary);
}

footer p {
    margin: 0.5rem 0;
}

footer strong {
    color: var(--primary-light);
}

/* ===== UTILITIES ===== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

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

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.flex {
    display: flex;
    gap: 1rem;
}

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

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

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.rounded {
    border-radius: 8px;
}

.rounded-lg {
    border-radius: 12px;
}

.rounded-full {
    border-radius: 9999px;
}

.shadow {
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.1);
}

.shadow-lg {
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.2);
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

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

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

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .modal-content {
        max-width: 95%;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-links {
        gap: 0.5rem;
        font-size: 0.8rem;
    }

    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .post-card {
        padding: 1rem;
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}
