/* FutureVision Portal Styles */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: #f0f2f5;
    color: #1c1e21;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1877f2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    animation: fadeIn 0.3s ease;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e4e6ea;
    font-weight: 600;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #e4e6ea;
    text-align: right;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #1877f2;
    color: white;
}

.btn-primary:hover {
    background: #166fe5;
}

.btn-secondary {
    background: #e4e6ea;
    color: #1c1e21;
}

.btn-secondary:hover {
    background: #d8dade;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 16px;
    max-width: 300px;
    z-index: 1500;
    animation: slideIn 0.3s ease;
}

.notification.success {
    border-left: 4px solid #00a400;
}

.notification.error {
    border-left: 4px solid #e41e3f;
}

.notification.info {
    border-left: 4px solid #1877f2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .notification {
        left: 10px;
        right: 10px;
        max-width: none;
    }
}

/* Dark mode support (for future implementation) */
@media (prefers-color-scheme: dark) {
    body {
        background: #18191a;
        color: #e4e6ea;
    }

    .main-feed,
    .left-sidebar,
    .sidebar-card {
        background: #242526;
        border-color: #3a3b3c;
    }

    .feed-post:hover,
    .menu-item:hover,
    .trending-topic:hover,
    .studio-link:hover {
        background: #3a3b3c;
    }

    .search-box {
        background: #3a3b3c;
        border-color: #555;
        color: #e4e6ea;
    }

    .search-box::placeholder {
        color: #b8b8b8;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.nav-link:focus,
.btn:focus,
.search-box:focus,
.post-input:focus,
.action-btn:focus {
    outline: 2px solid #1877f2;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .nav-links {
        background: #000;
        border-radius: 6px;
    }

    .main-feed,
    .left-sidebar,
    .sidebar-card {
        border: 2px solid #000;
    }
}
