/* Sky Sharing Platform Styles */

/* === Base Styles === */
:root {
  --primary-color: #4a90e2;
  --primary-dark: #3a7bc8;
  --secondary-color: #f5f7fa;
  --text-color: #333;
  --light-text: #666;
  --border-color: #e1e1e1;
  --success-color: #2ecc71;
  --error-color: #e74c3c;
  --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: #f9fafc;
  background-image: linear-gradient(180deg, #e8f1fc 0%, #f9fafc 100%);
  min-height: 100vh;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* === Header === */
header {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.logo i {
  margin-right: 0.5rem;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 1.5rem;
}

.nav-links a {
  color: var(--text-color);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.user-menu {
  position: relative;
}

.user-menu-trigger {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.user-menu-trigger img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-width: 180px;
  display: none;
  z-index: 1000;
}

.user-menu:hover .user-dropdown {
  display: block;
}

.user-dropdown a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-color);
  border-bottom: 1px solid var(--border-color);
}

.user-dropdown a:last-child {
  border-bottom: none;
}

.user-dropdown a:hover {
  background-color: var(--secondary-color);
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: white;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-color);
}

.btn-secondary:hover {
  background-color: #e8e8e8;
}

.btn-text {
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
}

.btn-text:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* === Home Page === */
.intro-section {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 1rem;
}

.intro-section h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.intro-section p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--light-text);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.feed-section {
  margin-bottom: 3rem;
}

.feed-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.sky-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.sky-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.sky-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sky-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.sky-card-header .username {
  font-weight: 500;
}

.sky-card-header .date {
  font-size: 0.9rem;
  color: var(--light-text);
}

.sky-image {
  display: block;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.sky-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.sky-image:hover img {
  transform: scale(1.05);
}

.sky-card-content {
  padding: 1rem;
}

.sky-card-content .comment {
  margin-bottom: 0.75rem;
}

.sky-card-content .location {
  font-size: 0.9rem;
  color: var(--light-text);
  margin-bottom: 0.75rem;
}

.sky-card-content .location i {
  margin-right: 0.3rem;
}

.interactions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.likes {
  display: flex;
  align-items: center;
}

.like-btn {
  background: none;
  border: none;
  color: var(--light-text);
  cursor: pointer;
  margin-right: 0.3rem;
  font-size: 1.1rem;
}

.like-btn:hover {
  color: #e74c3c;
}

.like-btn .fas {
  color: #e74c3c;
}

.like-count {
  font-size: 0.9rem;
}

.empty-feed {
  text-align: center;
  padding: 3rem 0;
  color: var(--light-text);
}

/* === Pagination === */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.pagination-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  border-radius: 4px;
  background-color: white;
  color: var(--text-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pagination-link:hover {
  background-color: var(--secondary-color);
}

.pagination-link.active {
  background-color: var(--primary-color);
  color: white;
}

/* === Upload Page === */
.upload-section {
  max-width: 600px;
  margin: 0 auto;
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  padding: 2rem;
}

.upload-section h1 {
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.upload-section .subtitle {
  text-align: center;
  color: var(--light-text);
  margin-bottom: 2rem;
}

.upload-form .form-group {
  margin-bottom: 1.5rem;
}

.upload-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.upload-form input[type="text"],
.upload-form input[type="number"],
.upload-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
}

.upload-form textarea {
  resize: vertical;
  min-height: 80px;
}

.file-upload {
  position: relative;
}

.file-upload input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-upload label {
  display: block;
  padding: 1rem;
  text-align: center;
  background-color: var(--secondary-color);
  border: 2px dashed var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.file-upload:hover label {
  background-color: #e8e8e8;
}

.file-preview {
  margin-top: 1rem;
  text-align: center;
}

.file-preview img {
  max-width: 100%;
  max-height: 300px;
  border-radius: 4px;
}

.location-coordinates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.use-current-location {
  margin-bottom: 1.5rem;
  text-align: right;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

/* === View Page === */
.sky-detail {
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  margin-bottom: 2rem;
}

.sky-detail-image {
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.sky-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.fullscreen-view {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

.fullscreen-view img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.close-fullscreen {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .sky-detail-image {
    height: 400px;
  }
}
.sky-detail-content {
  padding: 2rem;
}

.sky-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.sky-detail-user {
  display: flex;
  align-items: center;
}

.sky-detail-user img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 1rem;
}

.sky-detail-user .username {
  font-weight: 500;
}

.sky-detail-date {
  color: var(--light-text);
  font-size: 0.9rem;
}

.sky-detail-comment {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.sky-detail-location {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.sky-detail-location i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

.sky-detail-map {
  height: 300px;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
}

.sky-detail-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.sky-detail-likes {
  display: flex;
  align-items: center;
}

.back-to-feed {
  margin-bottom: 1rem;
}
/* === Profile Page === */
.profile-header {
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  padding: 2rem;
  margin-bottom: 2rem;
}

.profile-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-info h1 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.profile-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--light-text);
}

.profile-actions {
  margin-top: 1rem;
}

.profile-content {
  margin-bottom: 3rem;
}

.profile-content h2 {
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.empty-content {
  text-align: center;
  padding: 3rem 0;
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

.empty-content p {
  color: var(--light-text);
  margin-bottom: 1.5rem;
}

/* === Settings Page === */
.settings-container {
  max-width: 800px;
  margin: 0 auto;
}

.settings-container h1 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.settings-section {
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  padding: 2rem;
  margin-bottom: 2rem;
}

.settings-section h2 {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.info-item {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.info-label {
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.info-value {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.info-note {
  font-size: 0.9rem;
  color: var(--light-text);
}

.settings-form {
  margin-top: 1.5rem;
}

.danger-zone {
  border: 1px solid #ffdddd;
}

.danger-zone h2 {
  color: #e74c3c;
}

.account-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-danger {
  background-color: #e74c3c;
  color: white;
}

.btn-danger:hover {
  background-color: #c0392b;
}

/* === Delete Account Page === */
.danger-container {
  border: 1px solid #ffdddd;
  background-color: #fff8f8;
}

.warning-box {
  background-color: #fff0f0;
  border: 1px solid #ffd0d0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.warning-box h2 {
  color: #e74c3c;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.warning-box h2 i {
  margin-right: 0.5rem;
}

.warning-box ul {
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}

.warning-box li {
  margin-bottom: 0.5rem;
}

.confirmation-code {
  margin-bottom: 1.5rem;
  text-align: center;
}

.code-display {
  background-color: #f5f5f5;
  border: 1px solid #e1e1e1;
  border-radius: 4px;
  padding: 0.75rem;
  font-family: monospace;
  font-size: 1.2rem;
  margin-top: 0.5rem;
  user-select: all;
}

.delete-form .form-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
}

/* === Forms === */
.form-container {
  max-width: 500px;
  margin: 2rem auto;
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  padding: 2rem;
}

.form-container h1 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.form-container p {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--light-text);
}

.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 var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
}

.form-actions {
  margin-top: 2rem;
}

.form-actions .btn {
  width: 100%;
}

.form-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.error-message {
  background-color: #fadbd8;
  color: var(--error-color);
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.success-message {
  background-color: #d5f5e3;
  color: var(--success-color);
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

/* === Footer === */
footer {
  background-color: white;
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
}

.footer-links {
  display: flex;
  list-style: none;
}

.footer-links li {
  margin-left: 1.5rem;
}

.footer-links a {
  color: var(--light-text);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary-color);
}
/* === Legal Pages (Privacy Policy & Terms) === */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

.legal-content h1 {
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.last-updated {
  text-align: center;
  color: var(--light-text);
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.policy-section,
.terms-section {
  margin-bottom: 2rem;
}

.policy-section h2,
.terms-section h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.policy-section h3,
.terms-section h3 {
  margin: 1.5rem 0 0.75rem;
  color: var(--text-color);
}

.policy-section p,
.terms-section p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.policy-section ul,
.terms-section ul {
  margin: 1rem 0 1rem 1.5rem;
}

.policy-section li,
.terms-section li {
  margin-bottom: 0.5rem;
}

/* === Contact Page === */
.subtitle {
  text-align: center;
  color: var(--light-text);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-info {
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  padding: 2rem;
}

.contact-info .info-item {
  margin-bottom: 1.5rem;
}

.contact-info .info-item i {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.contact-info .info-item h3 {
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.social-links h3 {
  margin-bottom: 1rem;
  color: var(--text-color);
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

.contact-form-container {
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  padding: 2rem;
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
}

.contact-form textarea {
  resize: vertical;
}

.faq-section {
  margin-bottom: 3rem;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.faq-item {
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.faq-item h3 {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.faq-item p {
  color: var(--light-text);
  line-height: 1.6;
}
/* === Comments System === */
.comments-section {
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  padding: 2rem;
  margin-top: 2rem;
}

.comments-section h3 {
  margin-bottom: 1.5rem;
  color: var(--text-color);
  font-size: 1.25rem;
}

.comment-form-container {
  margin-bottom: 2rem;
}

.comment-form textarea {
  width: 100%;
  min-height: 100px;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  resize: vertical;
  transition: var(--transition);
}

.comment-form textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.comment-form .form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.login-to-comment {
  background-color: var(--secondary-color);
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  text-align: center;
}

.login-to-comment a {
  font-weight: 500;
}

.comments-list {
  margin-top: 2rem;
}

.comment {
  display: flex;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.comment:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.comment-avatar {
  flex-shrink: 0;
  margin-right: 1rem;
}

.comment-avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-content {
  flex-grow: 1;
  min-width: 0; /* Prevent content from overflowing */
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.comment-user {
  font-weight: 500;
  margin-right: 1rem;
}

.comment-user a {
  color: var(--text-color);
}

.comment-user a:hover {
  color: var(--primary-color);
}

.comment-date {
  font-size: 0.85rem;
  color: var(--light-text);
}

.comment-text {
  line-height: 1.6;
  word-wrap: break-word;
  margin-bottom: 0.5rem;
}

.comment-actions {
  text-align: right;
  font-size: 0.85rem;
}

.comment-actions a {
  color: var(--light-text);
  margin-left: 1rem;
}

.comment-actions a:hover {
  color: var(--primary-color);
}

.comment-actions a.delete-comment:hover {
  color: #e74c3c;
}

.no-comments {
  text-align: center;
  color: var(--light-text);
  padding: 2rem 0;
}
/* === Tags System === */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  background-color: #f0f7ff;
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.9rem;
  transition: var(--transition);
  text-decoration: none;
}

.tag:hover {
  background-color: var(--primary-color);
  color: white;
}

.tag-count {
  background-color: rgba(0, 0, 0, 0.08);
  color: inherit;
  border-radius: 50px;
  font-size: 0.8rem;
  padding: 0.1rem 0.5rem;
  margin-left: 0.5rem;
}

.tag:hover .tag-count {
  background-color: rgba(255, 255, 255, 0.2);
}

.tags-container {
  margin-bottom: 1.5rem;
}

.predefined-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 4px;
  max-height: 200px;
  overflow-y: auto;
}

.tag-checkbox {
  display: inline-flex;
  align-items: center;
  background-color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
}

.tag-checkbox input {
  margin-right: 0.5rem;
}

.tag-checkbox:hover {
  border-color: var(--primary-color);
}

.tag-checkbox input:checked + .tag-label {
  color: var(--primary-color);
  font-weight: 500;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.5rem 0;
}

/* === Explore Page === */
.explore-header {
  text-align: center;
  margin-bottom: 2rem;
}

.explore-header h1 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.explore-header p {
  color: var(--light-text);
  max-width: 600px;
  margin: 0 auto;
}

.search-container {
  margin-bottom: 2rem;
}

.search-form {
  max-width: 600px;
  margin: 0 auto;
}

.search-input {
  display: flex;
}

.search-input input {
  flex-grow: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 4px 0 0 4px;
  font-size: 1rem;
}

.search-input button {
  border-radius: 0 4px 4px 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.category-card {
  display: block;
  text-decoration: none;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.category-image {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.sunset-bg {
  background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('../img/categories/sunset.jpg');
}

.sunrise-bg {
  background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('../img/categories/sunrise.jpg');
}

.stars-bg {
  background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('../img/categories/stars.jpg');
}

.cloudy-bg {
  background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('../img/categories/cloudy.jpg');
}

.storm-bg {
  background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('../img/categories/storm.jpg');
}

.rainbow-bg {
  background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('../img/categories/rainbow.jpg');
}

.category-card h3 {
  color: var(--text-color);
  padding: 1rem;
  text-align: center;
  margin: 0;
}

.all-tags-section {
  margin-bottom: 3rem;
}

.all-tags-section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.map-explore {
  margin-bottom: 3rem;
  text-align: center;
}

.map-explore h2 {
  margin-bottom: 1.5rem;
}

.map-explore #map-container {
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  margin-bottom: 1.5rem;
}

.map-explore .btn {
  display: inline-block;
}

/* Tag page header */
.tag-header {
  text-align: center;
  margin-bottom: 2rem;
}

.tag-header h1 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.tag-header p {
  color: var(--light-text);
}

.tag-content {
  margin-bottom: 2rem;
}

.related-tags h2 {
  text-align: center;
  margin-bottom: 1rem;
}

/* Map popup styling */
.map-popup-content {
  text-align: center;
  padding: 0.5rem;
}

.map-popup-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.map-popup-user {
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.map-popup-date {
  font-size: 0.85rem;
  color: var(--light-text);
  margin-bottom: 0.5rem;
}

.map-popup-link {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
}
/* === Social Sharing === */
.sharing-section {
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
  margin-top: 2rem;
}

.sharing-section h3 {
  margin-bottom: 1.5rem;
  color: var(--text-color);
  font-size: 1.25rem;
  text-align: center;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.share-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  padding: 0.8rem 0;
  width: 90px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  font-size: 0.9rem;
}

.share-button i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.share-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  color: white;
}

.share-button.twitter {
  background-color: #1DA1F2;
}

.share-button.facebook {
  background-color: #4267B2;
}

.share-button.gabdotcom {
  background-color: rgb(33, 207, 122);
}

.share-button.pinterest {
  background-color: #E60023;
}

.share-button.linkedin {
  background-color: #0077B5;
}

.share-button.whatsapp {
  background-color: #25D366;
}

.share-button.telegram {
  background-color: #0088cc;
}

.share-button.email {
  background-color: #757575;
}

.direct-link {
  margin-top: 1.5rem;
}

.direct-link label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.copy-link-container {
  display: flex;
}

.copy-link-container input {
  flex-grow: 1;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-right: none;
  border-radius: 4px 0 0 4px;
  font-size: 0.9rem;
  background-color: #f8f9fa;
}

.copy-link-container input:focus {
  outline: none;
}

.copy-link-container .copy-link {
  padding: 0.75rem 1rem;
  border-radius: 0 4px 4px 0;
  white-space: nowrap;
}
/* === Advanced Search === */
.search-header {
  text-align: center;
  margin-bottom: 2rem;
}

.search-header h1 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.search-header p {
  color: var(--light-text);
}

.advanced-search-container {
  margin-bottom: 2rem;
  text-align: center;
}

#toggle-advanced-search {
margin-bottom: 1rem;
padding: 0.5rem 1rem;
font-size: 0.9rem;
}

.advanced-search-form {
  display: none;
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.advanced-search-form.active {
  display: block;
}

.search-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.search-row .form-group {
  margin-bottom: 0;
}

.search-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.search-results {
  margin-bottom: 3rem;
}

.pagination-ellipsis {
  display: inline-block;
  padding: 0.5rem;
  color: var(--light-text);
}

.search-help {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.search-help h3 {
  margin-bottom: 1rem;
  color: var(--text-color);
}

.search-help ul {
  padding-left: 1.5rem;
  color: var(--light-text);
}

.search-help li {
  margin-bottom: 0.5rem;
}

/* Override for flatpickr styles */
.flatpickr-input {
  background-color: white !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
  background: var(--primary-color);
  border-color: var(--primary-color);
}
/* === Notifications === */
.notifications-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.notifications-header h1 {
  color: var(--primary-color);
  margin-right: 1rem;
  margin-bottom: 0.5rem;
}

.unread-badge {
  background-color: var(--primary-color);
  color: white;
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  margin-right: auto;
}

.notifications-actions {
  display: flex;
  gap: 1rem;
  margin-left: auto;
}

.notifications-container {
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.empty-notifications {
  text-align: center;
  padding: 3rem 0;
  color: var(--light-text);
}

.empty-notifications i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.notification-item {
  position: relative;
  border-left: 3px solid transparent;
  transition: var(--transition);
}

.notification-item.unread {
  border-left-color: var(--primary-color);
  background-color: #f0f7ff;
}

.notification-link {
  display: flex;
  align-items: center;
  padding: 1rem;
  color: var(--text-color);
  text-decoration: none;
}

.notification-avatar {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  margin-right: 1rem;
  border-radius: 50%;
  overflow: hidden;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notification-avatar i {
  font-size: 1.5rem;
  color: var(--light-text);
}

.notification-content {
  flex-grow: 1;
  min-width: 0; /* Prevent text overflow */
}

.notification-text {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  line-height: 1.4;
}

.notification-time {
  font-size: 0.8rem;
  color: var(--light-text);
}

.notification-image {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  margin-left: 1rem;
  border-radius: 4px;
  overflow: hidden;
}

.notification-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notification-actions {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: none;
}

.notification-item:hover .notification-actions {
  display: flex;
}

.btn-icon {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--light-text);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-icon:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--primary-color);
}

.btn-icon.delete-notification:hover {
  color: #e74c3c;
}

/* Notification icon in header */
.notification-icon {
  position: relative;
  margin-right: 1.5rem;
  font-size: 1.2rem;
  color: var(--text-color);
}

.notification-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: #e74c3c;
  color: white;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Form help */
.form-help {
  display: flex;
  justify-content: flex-end;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.forgot-password {
  color: var(--light-text);
}

.forgot-password:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Activation Container */
.activation-container {
  max-width: 600px;
  margin: 3rem auto;
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  padding: 2rem;
  text-align: center;
}

.activation-success {
  color: var(--success-color);
}

.activation-error {
  color: var(--error-color);
}

.activation-container i {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.activation-container h1 {
  margin-bottom: 1rem;
}

.activation-container p {
  margin-bottom: 2rem;
  color: var(--text-color);
}

.activation-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Password Strength Meter */
.password-strength {
  margin-top: 0.5rem;
  height: 5px;
  border-radius: 5px;
  background-color: #eee;
  overflow: hidden;
}

.password-strength-meter {
  height: 100%;
  width: 0;
  transition: width 0.3s ease;
}

.strength-weak {
  width: 25%;
  background-color: #e74c3c;
}

.strength-medium {
  width: 50%;
  background-color: #f39c12;
}

.strength-good {
  width: 75%;
  background-color: #3498db;
}

.strength-strong {
  width: 100%;
  background-color: #2ecc71;
}

.password-strength-text {
  font-size: 0.8rem;
  margin-top: 0.3rem;
  color: var(--light-text);
}

/* Welcome Email Status */
.welcome-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--light-text);
}

.welcome-status i {
  font-size: 0.9rem;
  margin-right: 0.3rem;
}

/* Loader for AJAX requests */
.loader {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
  margin-right: 0.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Account Status Indicators */
.active-indicator {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  color: var(--success-color);
  margin-left: 0.5rem;
}

.inactive-indicator {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  color: var(--error-color);
  margin-left: 0.5rem;
}

.active-indicator i,
.inactive-indicator i {
  margin-right: 0.3rem;
}
/* === Edit Sky Photo === */
.edit-section {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  padding: 2rem;
}

.edit-section h1 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.edit-preview {
  margin-bottom: 2rem;
  text-align: center;
}

.edit-preview img {
  max-width: 100%;
  max-height: 400px;
  border-radius: 8px;
}

.edit-form .form-group {
  margin-bottom: 1.5rem;
}

.edit-form .form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .edit-form .form-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .edit-form .form-actions a,
  .edit-form .form-actions button {
    width: 100%;
    text-align: center;
  }
}

/* === Delete Confirmation === */
.delete-confirmation {
  max-width: 600px;
  margin: 0 auto;
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  padding: 2rem;
  text-align: center;
}

.delete-confirmation h1 {
  color: var(--error-color);
  margin-bottom: 1.5rem;
}

.warning-box {
  background-color: #fff0f0;
  border: 1px solid #ffd0d0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.warning-box i {
  font-size: 3rem;
  color: #e74c3c;
  margin-bottom: 1rem;
}

.warning-box p {
  color: #c0392b;
  font-weight: 500;
}

.delete-preview {
  display: flex;
  align-items: center;
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 2rem;
}

.delete-preview img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.delete-details {
  text-align: left;
}

.delete-details .comment {
  margin-bottom: 0.5rem;
}

.delete-details .location,
.delete-details .date {
  font-size: 0.9rem;
  color: var(--light-text);
  margin-bottom: 0.3rem;
}

.delete-details i {
  margin-right: 0.3rem;
}

.delete-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn-danger {
  background-color: #e74c3c;
  color: white;
}

.btn-danger:hover {
  background-color: #c0392b;
}

/* Error container */
.error-container {
  max-width: 600px;
  margin: 3rem auto;
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  padding: 2rem;
  text-align: center;
}

.error-container h1 {
  color: var(--error-color);
  margin-bottom: 1.5rem;
}

.error-actions {
  margin-top: 2rem;
}
/* === Responsive === */
@media (max-width: 768px) {
  .delete-preview {
    flex-direction: column;
    text-align: center;
  }

  .delete-preview img {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .delete-details {
    text-align: center;
  }

  .delete-actions {
    flex-direction: column;
  }

  .delete-actions .btn {
    width: 100%;
  }
  .activation-actions {
    flex-direction: column;
  }

  .activation-actions .btn {
    width: 100%;
  }

  .notifications-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .notifications-actions {
    margin-left: 0;
    margin-top: 1rem;
  }

  .notification-item {
    padding-right: 3rem; /* Make room for action buttons */
  }

  .notification-actions {
    display: flex;
    top: 50%;
    transform: translateY(-50%);
  }

  .notification-image {
    display: none; /* Hide thumbnail on small screens */
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .search-actions {
    flex-direction: column;
  }

  .search-actions button,
  .search-actions a {
    width: 100%;
  }
  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .predefined-tags {
    max-height: 250px;
  }

  .share-buttons {
    gap: 0.5rem;
  }

  .share-button {
    width: 80px;
    padding: 0.7rem 0;
  }

  .share-button i {
    font-size: 1.3rem;
  }

  .comments-section {
    padding: 1.5rem;
  }

  .comment-header {
    flex-direction: column;
  }

  .comment-date {
    margin-top: 0.25rem;
  }

  .comment-avatar img {
    width: 40px;
    height: 40px;
  }

  .nav-links {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .sky-grid {
    grid-template-columns: 1fr;
  }
  
  .location-coordinates {
    grid-template-columns: 1fr;
  }
  
  .form-actions {
    flex-direction: column;
    gap: 1rem;
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    margin-top: 1rem;
    justify-content: center;
  }
  
  .footer-links li:first-child {
    margin-left: 0;
  }
  .profile-stats {
    gap: 1rem;
  }

  .delete-form .form-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .delete-form .form-actions .btn {
    width: 100%;
  }
  .contact-container {
    grid-template-columns: 1fr;
  }

  .legal-content {
    padding: 1.5rem;
  }

}