/* Feeca.net - Custom Styles */

:root {
    /* Light Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-dark: #212529;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --accent-color: #dc3545;
    --accent-hover: #bb2d3b;
    --border-color: #dee2e6;
    --card-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --card-shadow-hover: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] {
    /* Dark Theme */
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-dark: #0d0d0d;
    --text-primary: #ffffff;
    --text-secondary: #adb5bd;
    --accent-color: #ff4757;
    --accent-hover: #ff3838;
    --border-color: #404040;
    --card-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
    --card-shadow-hover: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
}

/* Text muted colors for both themes */
.text-muted {
    color: var(--text-secondary) !important;
}

html, body {
    height: 100%;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.navbar-dark {
    background-color: var(--bg-dark) !important;
}

/* Gallery Cards */
.gallery-card {
    display: block;
    transition: transform 0.2s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    text-decoration: none;
}

.gallery-card-inner {
    border: none;
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.3s ease;
    overflow: hidden;
    background-color: var(--bg-secondary);
}

.gallery-card:hover .gallery-card-inner {
    box-shadow: var(--card-shadow-hover);
}

.gallery-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Square aspect ratio */
    overflow: hidden;
    background-color: var(--bg-dark);
}

.gallery-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-thumbnail img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 10px;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-stats {
    display: flex;
    gap: 5px;
    width: 100%;
}

.gallery-stats .badge {
    font-size: 0.75rem;
}

/* Section Titles */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Cards */
.card {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

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

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

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

/* Reactions */
.reactions-bar {
    background-color: var(--bg-secondary) !important;
}

.reaction-btn.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

/* Media Gallery */
.media-item img,
.media-item video {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.media-item img:hover {
    transform: scale(1.02);
}

.video-wrapper {
    background-color: var(--bg-dark);
    border-radius: 0.375rem;
    overflow: hidden;
}

/* Comments */
.comment-item {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
}

.comment-avatar img {
    object-fit: cover;
}

/* Forms */
.form-control,
.form-select {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.form-control:focus,
.form-select:focus {
    background-color: var(--bg-secondary);
    border-color: var(--accent-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
}

.breadcrumb-item a {
    color: var(--accent-color);
    text-decoration: none;
}

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

/* Main Content */
main {
    flex: 1;
}

/* Footer */
footer {
    background-color: var(--bg-dark) !important;
    margin-top: auto;
}

/* Hero Section */
.hero-section {
    padding: 2rem 0;
}

/* Gallery Header */
.gallery-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
}

.gallery-meta .badge {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

.gallery-stats {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.gallery-stats i {
    margin-right: 0.25rem;
}

/* Modal */
.modal-content {
    background-color: var(--bg-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-thumbnail {
        padding-top: 75%; /* Slightly taller on mobile */
    }
    
    .section-title {
        font-size: 1.25rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

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

.gallery-card-inner {
    animation: fadeIn 0.3s ease;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
}

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

/* Profile Page */
.profile-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
}

.card {
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
}

/* Profile Information Section */
.profile-info-section {
    margin-top: 2rem;
}

.profile-info-section .card {
    border: none;
    border-radius: 0.5rem;
}

.profile-info-section .card-header {
    border-radius: 0.5rem 0.5rem 0 0 !important;
    font-weight: 600;
}

.profile-info-section .profile-details {
    font-size: 0.95rem;
}

.profile-info-section .profile-details strong {
    display: inline-block;
    min-width: 140px;
    color: var(--text-primary);
    font-weight: 600;
}

.profile-info-section .profile-details i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.profile-info-section .badge {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
    margin: 0.2rem;
}

.profile-info-section .alias-list {
    font-size: 0.9rem;
}

.profile-info-section .alias-list strong {
    color: var(--text-primary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .profile-info-section .profile-details strong {
        min-width: 120px;
        font-size: 0.9rem;
    }
    
    .profile-info-section .col-md-6 {
        margin-bottom: 1.5rem;
    }
}
