
:root {
    --primary: #6c63ff;
    --secondary: #f50057;
    --dark: #2c2c2c;
    --light: #f5f5f5;
    --gray: #a0a0a0;
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

.app {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header Styles */
header {
    margin-bottom: 2rem;
}

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #8e84ff 100%);
    border-radius: 15px;
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    box-shadow: var(--card-shadow);
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* Navigation Styles */
nav {
    margin-bottom: 2rem;
}

nav ul {
    display: flex;
    list-style: none;
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

nav li {
    flex: 1;
    text-align: center;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

nav li:hover {
    background-color: rgba(108, 99, 255, 0.1);
}

nav li.active {
    background-color: var(--primary);
    color: white;
}

/* Section Styles */
section {
    margin-bottom: 3rem;
    display: none;
}

section.active {
    display: block;
}

section h2 {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: var(--primary);
}

section h2 i {
    margin-left: 0.5rem;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.card-container.blogs {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

/* Card Styles */
.card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.card-description {
    color: var(--gray);
    margin-bottom: 1rem;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1rem;
}

.card-meta span {
    background-color: rgba(108, 99, 255, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.card-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn i {
    margin-right: 0.5rem;
}

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

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

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Blog Card Styles */
.blog-card {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.blog-platform {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--gray);
    font-size: 0.9rem;
}

.blog-platform i {
    margin-right: 0.5rem;
    color: var(--primary);
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.blog-description {
    color: var(--gray);
    margin-bottom: 1rem;
}

.blog-date {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.blog-link:hover {
    text-decoration: underline;
}

.blog-link i {
    margin-left: 0.5rem;
}

/* Loading Styles */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(108, 99, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

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

/* Footer Styles */
footer {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
    background-color: var(--secondary);
}

.social-links a:nth-child(1) {
    background-color: #333;
}

.social-links a:nth-child(2) {
    background-color: #00ab6c;
}

.social-links a:nth-child(3) {
    background-color: #0a0a0a;
}

.social-links a:nth-child(4) {
    background-color: #fffc00;
    color: #000;
}

footer p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Login Styles */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.login-form {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--card-shadow);
}

.login-form h2 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.login-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-btn:hover {
    background-color: #5a52d5;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

/* Admin Panel Styles */
.admin-panel {
    display: none;
    margin-top: 2rem;
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.admin-panel h2 {
    margin-bottom: 1.5rem;
}

.admin-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #ddd;
}

.admin-tab {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.admin-tab.active {
    border-bottom-color: var(--primary);
    color: var(--primary);
    font-weight: 500;
}

.admin-content {
    display: none;
}

.admin-content.active {
    display: block;
}

.admin-form {
    margin-top: 1rem;
}

.form-row {
    margin-bottom: 1rem;
}

.form-row label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-row input,
.form-row textarea,
.form-row select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

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

.add-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.add-btn:hover {
    background-color: #5a52d5;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .app {
        padding: 1rem;
    }

    .hero {
        padding: 3rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    nav ul {
        flex-direction: column;
    }

    nav li {
        padding: 0.75rem;
    }

    .card-container {
        grid-template-columns: 1fr;
    }

    .card-container.blogs {
        grid-template-columns: 1fr;
    }
}
