/* Modern GoGroup-style Design for GoFoto */

/* Root variables for consistent design system */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #ecf0f1;
    --accent-color: #3498db;
    --text-color: #2c3e50;
    --light-text: #7f8c8d;
    --border-color: #bdc3c7;
    --hover-color: #f8f9fa;
    --card-shadow: 0 2px 10px rgba(0,0,0,0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --link-color: #2c3e50;
    --link-hover-color: #59775f;
}

/* Global typography - GoGroup inspired */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    font-weight: 400;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.3;
}

/* Page title styling - match homepage pageTitle .left h2 style */
.page-title {
    font-size: 30px !important;
    margin-bottom: 0 !important;
    font-weight: 100 !important;
    color: var(--text-color);
    line-height: 1.3;
}

/* Global link styling - GoGroup inspired */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

/* Navigation links */
.navbar .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover {
    color: #f0f0f0 !important;
}

/* Main content styling */
.container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    /* margin-bottom: 3rem; */
    position: relative;
    z-index: 2;
}

/* Card and content styling */
.card {
    font-family: inherit;
}

.card-title {
    font-weight: 600;
    color: var(--text-color);
}

.card-text {
    color: var(--text-color);
    line-height: 1.6;
}

/* Clean base styles */
* {
  box-sizing: border-box;
}

/* Main navigation styling */
.main-navigation {
  background: #99c89d !important;
  padding: 0.25rem 0 !important;
}

.main-navigation .navbar {
  background: #99c89d !important;
    min-height: 50px !important;
}

.navbar {
  color: #ffffff !important;
}

.navbar .navbar-brand {
  color: #ffffff !important;
  padding: 0.1rem 0 !important;
}

.navbar .navbar-text {
  color: #ffffff !important;
}

.navbar .nav-link {
  padding: 0.15rem 0.75rem !important;
}

/* Logo styling - GROUP FOTO SVG */
.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    padding: 0.1rem 0;
}

.logo-image {
    height: 30px;
    width: auto;
    max-width: 150px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover .logo-image {
    transform: scale(1.05);
}

/* Language flag styling */
.language-flag {
    height: 18px;
    width: auto;
    margin-right: 6px;
    border-radius: 2px;
    border: 1px solid rgba(255,255,255,0.2);
}

.navbar-nav .nav-link:hover .language-flag {
    border-color: rgba(255,255,255,0.4);
}

/* Main content area - ensure footer stays at bottom 
.container {
    flex: 1;
    margin-bottom: 2rem;
}*/

/* Footer styling - GoGroup inspired */
.footer {
    background: #99c89d !important;
    color: #ffffff !important;
    padding: 0;
    margin-top: auto;
    width: 100%;
    position: relative;
    z-index: 10;
    clear: both;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.footer * {
    font-family: inherit !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.footer .container-fluid {
    background: var(--global--footer-background-color);
    padding: 0 15px;
    width: 100%;
    margin: 0;
}

.footer .row {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.footer .container {
    max-width: 1200px;
}

.footer .footLogo {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
    margin-bottom: 1rem;
    padding-left: 15px;
}

.footer .footLogo img {
    max-height: 60px;
    width: auto;
    max-width: 180px;
    filter: brightness(1.2) contrast(1.2);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.footer .col-md-9 {
    padding-left: 15px;
    margin-left: 0;
}

.footer .footer-nav {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
    margin-bottom: 1rem;
    margin-top: 1rem;
    padding-left: 0;
    margin-left: 0;
}

.footer .nav-item {
    margin-bottom: 0.5rem;
}

.footer .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
}

.footer .nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.footer .nav-link.active {
    color: #ffffff !important;
    font-weight: 600;
    background-color: rgba(255,255,255,0.1);
}

.footer .copyright {
    background: #99c89d !important;
    font-size: 0.9rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.6;
    margin-top: 0.5rem;
    margin-left: 10;

}

/* Photo card content styling */
.photo-card {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.photo-card .card-body {
    padding: 1.25rem !important;
}

.photo-card h3 {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    padding: 0 0.25rem;
    line-height: 1.4;
}

.photo-card-meta {
    font-size: 0.9rem;
    color: #6c757d;
    padding: 0 0.25rem;
    margin-top: 0.5rem;
    line-height: 1.5;
}

.photo-card-author, .photo-card-category {
    font-weight: 500;
    display: inline-block;
    margin-right: 1rem;
    margin-bottom: 0.25rem;
}

/* Photo card links - override Bootstrap blue */
.photo-card a,
.photo-grid .photo-card a,
.row .photo-card a {
    color: var(--text-color) !important;
    text-decoration: none !important;
}

.photo-card a:hover,
.photo-grid .photo-card a:hover,
.row .photo-card a:hover {
    color: var(--text-color) !important;
    text-decoration: none !important;
}

.photo-card a h3,
.photo-card a:hover h3 {
    color: var(--text-color) !important;
}

/* Author and category links */
.photo-card-author a,
.photo-card-category a,
.photo-card-meta a {
    color: var(--link-color) !important;
    font-weight: 500;
}

.photo-card-author a:hover,
.photo-card-category a:hover,
.photo-card-meta a:hover {
    color: var(--link-hover-color) !important;
    text-decoration: underline !important;
}

/* Category cards */
.category-card h4 {
    font-weight: 600;
    color: var(--text-color);
}

.category-overlay h4 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Buttons - GoGroup inspired */
.btn {
    font-family: inherit;
    font-weight: 500;
    text-transform: none;
    border-radius: 0.375rem;
}

.btn-primary {
    background-color: var(--link-color) !important;
    border-color: var(--link-color) !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--link-hover-color) !important;
    border-color: var(--link-hover-color) !important;
    color: #ffffff !important;
}

.btn-light {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: #212529 !important;
}

.btn-light:hover {
    background-color: #f8f9fa !important;
    border-color: #f8f9fa !important;
    color: #212529 !important;
}

.btn-link {
    background: transparent !important;
    border: none !important;
    color: var(--link-color) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

.btn-link:hover,
.btn-link:focus {
    background: transparent !important;
    border: none !important;
    color: var(--link-hover-color) !important;
    text-decoration: underline !important;
}

/* Stats and pagination elements */
.stats-number,
.pagination,
.stats-card {
    position: relative;
    z-index: 10;
    margin-bottom: 2rem;
}

/* Container-footer styling - clean and simple */
.container-footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    background: transparent;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.footer .nav-link {
    color: white !important;
    font-weight: 500;
}

.footer .nav-link:hover {
    color: #f0f0f0 !important;
}


.footer .footLogo {
    display: flex;
    align-items: center;
    padding-right: 1rem;
}

/* Remove any white backgrounds from footer elements */
.footer .row,
.footer .col-md-12,
.footer .nav,
.footer .nav-item {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.footer .footLogo img {
    filter: brightness(0) invert(1);
    max-height: 35px;
    margin-right: 0.5rem;
}

/* Pagination styling and centering */
.pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
   }

/* Modern pagination wrapper */
.modern-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    
}

/* Pagination color fixes */
.pagination .page-link {
    color: var(--link-color);
    border-color: var(--border-color);
}

.pagination .page-link:hover,
.pagination .page-link:focus {
    color: var(--link-hover-color) !important;
    background-color: var(--hover-color);
    border-color: var(--link-hover-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--link-hover-color);
    border-color: var(--link-hover-color);
    color: white;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer .footLogo {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer .footLogo img {
        max-height: 40px;
        max-width: 120px;
    }
    
    .footer .nav {
        justify-content: center;
    }
    
    
  }



/* Modern Photo Grid Cards - GoProperty.ee inspired frameless design */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: var(--spacing-md) 0;
}

.photo-card {
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  transition: var(--transition);
  border: none;
  box-shadow: none;
  position: relative;
}

.photo-card:hover {
  transform: none;
  box-shadow: none;
  border: none;
}

.photo-card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--background-light);
}

.photo-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.photo-card:hover .photo-card-image img {
  transform: scale(1.02);
}

/* Photo Caption Overlay - title always visible at bottom */
.photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  padding: 20px 15px 10px 15px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Photo caption title with higher specificity */
.photo-card .photo-caption .photo-caption-title,
.photo-card a .photo-caption .photo-caption-title,
.photo-caption .photo-caption-title {
  font-size: 14px;
  font-weight: 600;
  color: white !important;
  margin: 0;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  padding: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Photo card content below image */
.photo-card-content {
  padding: 12px 5px;
}

/* Meta information below image - always visible */
.photo-caption-meta {
color: #666;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.photo-caption-author {
  font-weight: 500;
  color: #333;
}

.photo-caption-category {
  font-weight: 400;
  color: #666;
}

/* Stats Card */
.stats-card {
  background: transparent;
  border: none;
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  margin: var(--spacing-lg) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.stats-label {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin: 0;
  flex-shrink: 0;
}

.stats-number {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: #34304c;
  margin: 0;
  flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
    padding: 1rem 0;
  }
}

@media (max-width: 480px) {
  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

/* Custom button styles */
.btn-secondary {
  background-color: #99c89d !important;
  border-color: #99c89d !important;
  color: #fff !important;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
  background-color: #87b589 !important;
  border-color: #87b589 !important;
  color: #fff !important;
}

/* COOKIEBAR FIX - Ensure it appears above footer */
.cookiebar {
    z-index: 1050 !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
}

/* CATEGORY PAGE PHOTO FRAMES - Match homepage thumbnail styling */
.photo-grid .photo-card .photo-card-image {
    background: #ffffff !important;
    background-color: #ffffff !important;
    padding: 0.25rem !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.25rem !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.photo-grid .photo-card .photo-card-image img {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-radius: 0.125rem !important;
}

/* Override any CSS variables that might be causing grey background */
.photo-grid .photo-card-image {
    --background-light: #ffffff !important;
}

/* Fix photo caption positioning to not cover white frame */
.photo-grid .photo-card .photo-caption {
    bottom: 0.25rem !important;
    left: 0.25rem !important;
    right: 0.25rem !important;
    border-radius: 0.125rem !important;
}
.badge.badge-info {
    color: var(--text-color) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}
/* Admin panel badge improvements for better visibility */
.badge-primary {
    background-color: #007bff !important;
    color: var(--text-color) !important;
    border: 1px solid #0056b3 !important;
}

.badge-secondary {
    background-color: #6c757d !important;
    color: var(--text-color) !important;
    border: 1px solid #495057 !important;
}

/* Ensure badges are visible on light backgrounds */
.badge {
    font-weight: 500 !important;
    padding: 0.375rem 0.75rem !important;
}

