/* 2DSlice Blog - Mobile-First Responsive CSS */

/* Reset and Base Styles */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

.container {
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
.header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 20px;
}

.logo {
    text-decoration: none;
    color: #000;
}


.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-user, .nav-guest {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    position: relative;
}

.pro-user-icon {
    color: #dc3545;
}

.nav-links {
    display: none;
    gap: 0rem;
    align-items: center;
}

.nav-links.menu-open,
.nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    gap: 1rem;
    min-width: 110px;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    z-index: 1000;
}

.nav-link {
    text-decoration: none;
    color: #444;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1em;
    transition: all 0.3s ease;
}

.nav-link:hover {
    font-weight: 600;
    color: #000;
    text-decoration: none;
}

.nav-link.logout {
    color: #dc3545;
}

.nav-link.logout:hover {
    font-weight: 600;
    text-decoration: none;
}

.nav-text-to-hide {
    display: none;
}

.activity-bell-link {
    display: inline-block;
    margin-right: 0.75rem;
    color: #dc3545;
    text-decoration: none;
    position: relative;
    transition: transform 0.2s ease;
}

.activity-bell-link:hover {
    transform: scale(1.2);
    text-decoration: none;
}

.activity-bell-icon {
    color: #dc3545;
}

.username-link {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.username-link:hover {
    color: #333;
    text-decoration: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    margin-right: -8px;
}

.mobile-menu-toggle.always-visible {
    display: flex;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

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

/* Messages */
.messages {
    margin-bottom: 1rem;
}

.message {
    padding: 1rem;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Forms */
.auth-container {
    max-width: 400px;
    margin: 2rem auto;
}

.auth-card {
    background: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

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

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

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

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    font-size: 1rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

.form-help {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.25rem;
}

.form-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.form-error:empty {
    display: none;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.5rem;
}

.radio-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
}

.radio-label input[type="radio"] {
    margin-right: 0.5rem;
    cursor: pointer;
    width: 1.25rem;
    height: 1.25rem;
}

.radio-label span {
    user-select: none;
}

.auth-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.25rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
    text-decoration: none;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #545b62;
    text-decoration: none;
}

.btn-danger {
    background-color: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background-color: #c82333;
    text-decoration: none;
}

.btn-outline {
    background-color: transparent;
    color: #007bff;
    border: 1px solid #007bff;
}

.btn-outline:hover {
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-full {
    width: 100%;
}

/* Dashboard */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #fff;
    padding: 0.5rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    font-size: 2rem;
    color: #007bff;
    margin: 0.5rem 0;
}

.posts-section h3 {
    margin-bottom: 1rem;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-item {
    background: #fff;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
}

.post-item.draft {
    border-left: 8px solid #ffc107;
}

.post-item.published {
    border-left: 8px solid #28a745;
}

.post-content h4 {
    margin: 0.5rem 0;
}

.post-content h4 a {
    color: #333;
    text-decoration: none;
}

.post-content h4 a:hover {
    color: #007bff;
    text-decoration: underline;
}

.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #666;
}

.status {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status.published {
    background-color: #d4edda;
    color: #155724;
}

.status.draft {
    background-color: #fff3cd;
    color: #856404;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #666;
}

/* Post Creation/Editing */
/* Styles moved to ce.css */

/* Post View */
.post-view-container {
    max-width: 800px;
    margin: 0 auto;
}

.post-view {
    background: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.post-view .post-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.post-meta {
    color: #666;
    font-size: 0.875rem;
}

.post-content {
    font-size: 1.125rem;
    line-height: 1.7;
    min-width: 0;
}

.post-thumbnail {
    max-width: 160px;
    max-height: 120px;
    width: 160px;
    height: 120px;
    border-radius: 0.375rem;
    overflow: hidden;
    background: #f0f0f0;
    align-items: center;
    object-fit: cover;
}

.post-thumbnail a {
}

.thumbnail-image {
    max-height: 100%;
}

.thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.75rem;
    text-align: center;
    padding: 0.5rem;
}

.post-footer {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

/* Settings */
.settings-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
}

.settings-header {
    margin-bottom: 2rem;
}

.settings-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feedback-info-box {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-left: 4px solid #007bff;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #004085;
}

.feedback-info-box i {
    color: #007bff;
    font-size: 1rem;
    flex-shrink: 0;
}

.feedback-info-box a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.feedback-info-box a:hover {
    text-decoration: underline;
}

.settings-section {
    background: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.settings-section h3 {
    margin: 0 0 1rem 0;
    color: #333;
}

.info-card {
    display: grid;
    gap: 1rem;
}

.stats-card {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item label {
    font-weight: 500;
    color: #666;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 0.875rem;
}

.danger-zone {
    border: 1px solid #dc3545;
}

.danger-card {
    background-color: #f8d7da;
    padding: 1.5rem;
    border-radius: 0.25rem;
}

.danger-card h4 {
    color: #721c24;
    margin-bottom: 1rem;
}

.danger-card p {
    color: #721c24;
    margin-bottom: 1rem;
}

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

.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h3 {
    margin-bottom: 1rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Footer */
.footer {
    background: #f8f8f8;
    border-top: 1px solid #e0e0e0;
    padding: 4px 1rem;
    font-weight: 300;
    color: #666;
    text-align: center;
    margin-top: 2rem;
}

.footer a {
    text-decoration: none;
    color: #000;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #007bff;
}


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

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.hidden { display: none; }
.visible { display: block; }

/* Status Tags */
.status-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-tag.published {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-tag.draft {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Post Actions */
.post-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    justify-content: flex-end;
}

.post-actions .icon {
    font-size: 1rem;
    margin-right: 0.25rem;
}

.post-actions .btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Post Status */
.post-status {
    margin-bottom: 1rem;
}


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

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Image Upload Styles */
/* Dropzone and image upload styles moved to ce.css */
/* Profile image styles remain here */
.current-profile-image {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fafafa;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.profile-image-preview {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 0;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
}

.profile-image-info {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

.profile-image-info p {
    margin: 0.25rem 0;
}

.profile-image-actions {
    display: flex;
    gap: 0.5rem;
}

.no-profile-image {
    padding: 1rem;
    text-align: center;
    color: #666;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}

.text-muted {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Post Image Display */
.post-image-container {
    margin: 1.5rem 0;
    text-align: center;
}

.post-image {
    max-width: 100%;
    height: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-location {
    color: #666;
    font-size: 0.875rem;
}

.post-location i {
    margin-right: 0.25rem;
}

/* Profile Image Card */
.profile-image-card {
    /* padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fafafa; */
}

.profile-image-upload {
    margin-top: 1rem;
}

@media (min-width: 768px) {

    .profile-image-preview {
        width: 200px;
        height: 200px;
    }
}

/* User Profile Styles */
.user-profile-container {
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
}

.user-header {
    text-align: center;
    padding: 1rem 0;
}

.user-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
    justify-content: center;
}

.profile-photo-container {
    position: relative;
}

.profile-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-initial {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    color: white;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.user-details {
    text-align: left;
    font-weight: 300;
}

.user-name {
    font-size: 2.5rem;
    font-weight: 300;
    margin: 0;
    color: #333;
}

.user-username {
    font-size: 1.2rem;
    color: #666;
    margin: 0.5rem 0;
    font-weight: 300;
    text-transform: uppercase;
    line-height: 1;
}

.post-count {
    font-size: 1rem;
    color: #888;
    margin: 0;
}

/* Posts Grid - Shared Styles */
.posts-grid {
    margin: 2rem 20px;
}

.posts-grid::after {
    content: '';
    display: block;
    clear: both;
}

.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border:1px solid #ddd;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 340px;
    margin-bottom: 2rem;
    float: left;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.post-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.post-card:hover .post-link {
    text-decoration: none;
}

.post-card .post-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    margin: 0;
    background: #f0f0f0;
    flex-shrink: 0;
}

.post-card .post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-image {
    transform: scale(1.05);
}

.post-card .post-info {
    padding: 0.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card .post-title {
    font-size: 1.1rem;
    font-weight: 300;
    margin: 0.25rem 0;
    color: #444;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-transform: capitalize;
}
.post-card .post-body {
    font-size: 0.875rem;
    font-weight: 400;
    margin: 0.25rem 0;
    color: #666;
}

.post-card .post-meta-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: space-between;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #666
}

.post-card .post-date {
    margin: 0;
}

.post-card .post-comment-count {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
}

.post-card .post-comment-count i {
    font-size: 0.85rem;
    color: #888;
}

.post-card .post-username {
    margin: 0 0 0 0.5rem;
}

/* No Posts State */
.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.no-posts-content h2,
.no-posts h3 {
    font-size: 2rem;
    font-weight: 300;
    margin: 0 0 0.5rem 0;
    color: #333;
}

.no-posts-content p,
.no-posts p {
    font-size: 1.1rem;
    margin: 0;
    color: #666;
}

.no-posts h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

/* Welcome Box */
.welcome-box {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 1rem;
    min-height: 400px;
}

.welcome-box-content {
    background: #fff;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.welcome-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.welcome-box-content h2 {
    font-size: 2rem;
    font-weight: 400;
    margin: 0 0 1rem 0;
    color: #333;
}

.welcome-box-content p {
    font-size: 1.1rem;
    margin: 0 0 2rem 0;
    color: #666;
    line-height: 1.6;
}

.welcome-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.welcome-actions .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.welcome-actions .btn i {
    font-size: 0.9rem;
}

/* Welcome box in dashboard (not in grid) */
#posts-list-container .welcome-box {
    grid-column: unset;
    min-height: 300px;
}

/* User Profile Responsive */
@media (max-width: 768px) {
    .nav-text-to-hide {
        display:inline;
    }

    .welcome-box {
        padding: 2rem 1rem;
        min-height: 300px;
    }

    .welcome-box-content {
        padding: 2rem 1.5rem;
    }

    .welcome-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .welcome-box-content h2 {
        font-size: 1.5rem;
    }

    .welcome-box-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .welcome-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .welcome-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .user-profile-container {
        padding: 0;
    }

    .user-header {
        margin-bottom: 1rem;
        padding: 0.5rem 0;
    }

    .profile-photo,
    .profile-initial {
        width: 100px;
        height: 100px;
    }

    .profile-initial {
        font-size: 2.5rem;
    }

    .user-name {
        font-size: 2rem;
    }

    .posts-grid {
        margin-top: 1rem;
    }

    .post-card {
        width: 100%;
        max-width: 100%;
    }

    .post-card .post-image-container {
        height: 200px;
    }

    .post-card .post-image {
        object-fit: cover;
    }

    .post-card .post-info {
        padding: 1rem;
    }

    .user-username {
        font-size: 1rem;
        margin: 0;
    }

    .post-status {
        margin-bottom: 0;
    }
    .post-status h2 {
        margin: 0;
    }

}

@media (max-width: 480px) {
    .user-profile-container {
        padding: 0;
    }

    .profile-photo,
    .profile-initial {
        width: 80px;
        height: 80px;
    }

    .profile-initial {
        font-size: 2rem;
    }

    .user-name {
        font-size: 1.8rem;
    }

    .user-username {
        font-size: 1rem;
    }

    .posts-grid {
        margin: 1rem 10px;
    }

    .post-card {
        width: 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }

    .post-card .post-image-container {
        height: 180px;
    }

    .post-card .post-image {
        object-fit: cover;
    }
}

/* Search Section - Shared Styles */
.search-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
}

.search-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.25rem 2.5rem 0.25rem 0.25rem;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.search-input:focus {
    border-color: #007bff;
    box-shadow: 0 6px 6px 0 rgba(0, 123, 255, 0.2);
}

.search-clear {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 1.2rem;
    padding: 0;
    width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.search-clear:hover {
    color: #333;
}

/* Clear button visibility is controlled by JavaScript */

.search-button {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.search-button:hover {
    background: #0056b3;
}

.search-button:active {
    background: #004085;
}

@media (max-width: 768px) {
    .search-section {
        padding: 0.5rem 2rem;
        margin-bottom: 1rem;
    }

    .search-form {
        flex-direction: column;
    }

    .search-button {
        width: 100%;
    }
}

/* ============================================
   Photographic Process Feature Styles
   ============================================ */
/* Photographic Process, EXIF, and Modal styles moved to ce.css */
/* Camera Icon (in post detail page) */
#camera-ph {
    cursor: pointer;
    transition: opacity 0.2s;
}

#camera-ph:hover {
    opacity: 1 !important;
}


/* Responsive Design */
@media (max-width: 768px) {
    .main {
        padding: 0;
    }

    .footer {
        padding: 4px 0.5rem;
    }

    .header-content {
        justify-content: space-between;
        align-items: center;
        padding: 0 1rem;
    }

    .mobile-menu-toggle.always-visible {
        display: flex;
    }

    .nav-user, .nav-guest {
        position: relative;
    }

    .nav-links {
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-link {
        border-radius: 0.25rem;
        text-align: left;
        width: 100%;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    .dashboard-container, .settings-container {
        padding: 0 1rem;
    }
    .dashboard-stats {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        margin: 1rem 0;
    }

    .auth-container {
        max-width: 100%;
    }

    .post-item {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        padding: 0.75rem;
        gap: 1rem;
    }

    .post-thumbnail {
        max-width: 120px;
        max-height: 90px;
        width: 120px;
        height: 90px;
    }

    .post-content {
        margin-bottom: 0;
        min-width: 0;
    }
    .post-content h4 {
        font-size: 1rem;
    }

    .post-actions {
        flex-wrap: wrap;
        gap: 0.25rem;
        align-content: center;
    }

    .post-actions .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
        min-width: auto;
    }

    .post-title {
        font-size: 2rem;
    }
    .auth-card {
        padding: 1.5rem;
    }

    .settings-section {
        padding: 1rem 0.5rem;
    }

    .settings-section h3 {
        margin: 0 0 1rem 0;
    }

    .stat-card p {
        margin: 0;
    }

    .stat-card h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .post-title {
        font-size: 1.75rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .stat-card h3 {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

/* Follow/Unfollow Button Styles */
.follow-button-container {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.follow-btn {
    padding: 0.25rem 0.625rem;
    margin-left: 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    background-color: #d7fdfd;
    border: 1px solid #79cbcb;
}

.follow-btn.follow {
    background-color: #007bff;
    color: white;
    text-transform: uppercase;
}

.follow-btn.follow:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.follow-btn.unfollow {
    border: 1px solid #ccc;
    color: #999;
    font-weight: 500;
    text-transform: uppercase;
}

.follow-btn.unfollow:hover {
    color: #ff6b6b;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.3);
}

.follow-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Filter Toggle Styles */
.filter-section {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.filter-toggle {
    display: inline-flex;
    background: #f0f0f0;
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
}

.filter-option {
    padding: 0.625rem 1.25rem;
    border: none;
    background: transparent;
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.filter-option:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

.filter-option.active {
    background: white;
    color: #007bff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

/* Photographer Card Styles */
.photographer-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.photographer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.photographer-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: row;
    padding: 1rem 1.5rem;
    align-items: center;
    gap: 1rem;
}

.photographer-image-container {
    flex-shrink: 0;
}

.photographer-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.photographer-initial {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.photographer-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.photographer-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #333;
    line-height: 1.3;
}

.photographer-username {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.3;
}

.photographer-post-count {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
    line-height: 1.3;
}

.no-photographers {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.no-photographers h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 2rem;
    font-weight: 300;
}

.no-photographers p {
    margin: 0;
}

/* Tag Styles */
/* Tag and date input styles moved to ce.css */

@media (max-width: 768px) {
    .follow-button-container {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
    }

    .follow-btn {

    }

    .user-info {
        flex-direction: row;
        gap: 1.5rem;
    }

    .filter-toggle {
        width: 100%;
        justify-content: stretch;
        gap: 0.5rem;
    }

    .filter-option {
        flex: 1;
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
    .filter-toggle-container {
        gap: 0.5rem;
    }
    .filter-section {
        margin-bottom: 0.5rem;
    }
    .keyboard-shortcuts-help {
        display: none;
    }
}

.keyboard-shortcuts-help {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.875rem;
    color: #666;
    border-top: 1px solid #eee;
}
kbd {
    background-color: #f0f0f0;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    min-width: 20px;
    text-align: center;
    color: #333;
}