/* Digital Garden - Main Stylesheet */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --light-bg: #f8f9fa;
    --border-color: #e5e7eb;
}

/* Auth Pages */
.auth-page {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.auth-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Main Content */
.main-content {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.card-header {
    background: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* Forms */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Badges */
.badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid var(--border-color);
}

/* Navigation */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Search */
.search-form {
    max-width: 400px;
}

/* Filter Tags */
.filter-tags {
    margin-bottom: 1rem;
}

.filter-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin: 0.25rem;
    background: var(--light-bg);
    border-radius: 20px;
    font-size: 0.875rem;
    text-decoration: none;
    color: #495057;
}

.filter-tag:hover {
    background: #e9ecef;
}

.filter-tag.active {
    background: var(--primary-color);
    color: white;
}

/* Item Cards */
.item-card {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.item-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Visibility Badge */
.visibility-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 2rem;
}

.quick-action-btn {
    text-align: center;
    padding: 1.5rem;
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    text-decoration: none;
    color: #495057;
    transition: all 0.2s;
}

.quick-action-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .auth-card {
        padding: 1.5rem;
    }

    .main-content {
        padding-top: 1rem;
    }

    .quick-actions .row > div {
        margin-bottom: 1rem;
    }
}

/* Footer */
.footer {
    margin-top: auto;
    background: var(--light-bg);
    border-top: 1px solid var(--border-color);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Toast Messages */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1060;
}

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

/* Public Profile */
.public-profile-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.public-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.public-profile-info {
    text-align: center;
}

.public-profile-bio {
    max-width: 600px;
    margin: 1rem auto;
}

/* Tags Input */
.tags-input-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    min-height: 42px;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
}

.tag-remove {
    margin-left: 0.5rem;
    cursor: pointer;
    opacity: 0.7;
}

.tag-remove:hover {
    opacity: 1;
}

/* Rich Text Editor */
.rich-text-editor {
    min-height: 300px;
}

/* Dashboard Stats */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
}
