@import './tailwind.css';

/* aresCMS — Styles */

:root {
    --md-primary: #bb86fc;
    --md-primary-variant: #3700b3;
    --md-secondary: #03dac6;
    --md-background: #121212;
    --md-surface: #1e1e1e;
    --md-error: #cf6679;
    --md-on-primary: #000000;
    --md-on-secondary: #000000;
    --md-on-background: #ffffff;
    --md-on-surface: #ffffff;
    --md-on-error: #000000;
}

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

body {
    font-family: 'Figtree', sans-serif;
    background-color: var(--md-background);
    color: var(--md-on-background);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: var(--md-surface);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

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

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--md-primary);
    text-decoration: none;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.navbar-nav a {
    color: var(--md-on-surface);
    text-decoration: none;
    transition: color 0.3s;
}

.navbar-nav a:hover {
    color: var(--md-primary);
}

/* Cards */
.card {
    background-color: var(--md-surface);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--md-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: var(--md-primary-variant);
}

.btn-secondary {
    background-color: var(--md-secondary);
    color: var(--md-on-secondary);
}

.btn-secondary:hover {
    opacity: 0.9;
}

.btn-danger {
    background-color: var(--md-error);
    color: var(--md-on-error);
}

.btn-danger:hover {
    opacity: 0.9;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--md-on-surface);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #333;
    border-radius: 4px;
    background-color: var(--md-surface);
    color: var(--md-on-surface);
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--md-primary);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: rgba(3, 218, 198, 0.2);
    border: 1px solid var(--md-secondary);
    color: var(--md-secondary);
}

.alert-error {
    background-color: rgba(207, 102, 121, 0.2);
    border: 1px solid var(--md-error);
    color: var(--md-error);
}

/* News Cards */
.news-card {
    background-color: var(--md-surface);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-4px);
}

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

.news-card-content {
    padding: 1.5rem;
}

.news-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--md-primary);
}

.news-card-title a {
    color: inherit;
    text-decoration: none;
}

.news-card-title a:hover {
    text-decoration: underline;
}

.news-card-meta {
    font-size: 0.875rem;
    color: #888;
    margin-bottom: 1rem;
}

.news-card-excerpt {
    color: var(--md-on-surface);
    margin-bottom: 1rem;
}

/* Comments */
.comment {
    background-color: var(--md-surface);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: var(--md-primary);
}

.comment-date {
    font-size: 0.875rem;
    color: #888;
}

.comment-content {
    color: var(--md-on-surface);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    color: var(--md-on-surface);
    background-color: var(--md-surface);
}

.pagination a:hover {
    background-color: var(--md-primary);
    color: var(--md-on-primary);
}

.pagination .active span {
    background-color: var(--md-primary);
    color: var(--md-on-primary);
}

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--md-surface);
    border-radius: 8px;
    overflow: hidden;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #333;
}

.admin-table th {
    background-color: var(--md-primary);
    color: var(--md-on-primary);
}

.admin-table tr:hover {
    background-color: rgba(187, 134, 252, 0.1);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background-color: var(--md-secondary);
    color: var(--md-on-secondary);
}

.badge-danger {
    background-color: var(--md-error);
    color: var(--md-on-error);
}

.badge-warning {
    background-color: #ffc107;
    color: #000;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.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; }

.d-flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

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