@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

.montserrat {
   font-family: "Montserrat", serif;
   font-optical-sizing: auto;
   font-weight: 100;
   font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat, Arial, sans-serif";
  overflow: hidden; /* Prevent body scrolling */
  height: 100vh;
}

.wrapper {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.top-bar {
  height: 60px; /* Fixed height */
  min-height: 60px;
  background: linear-gradient(to bottom, #f0f0f0, #d0d0d0);
  border-bottom: 2px solid #999;
  display: flex;
  align-items: center;
  padding: 0 15px;
  flex-shrink: 0; /* Don't let top bar shrink */
  position: relative;
  z-index: 100;
}

.title-logo {
  height: 40px;
  width: auto;
  margin-right: 15px;
}

.title {
  flex: 1;
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
}

.top-bar-min, .top-bar-max, .top-bar-x {
  width: 30px;
  height: 20px;
  margin-left: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ddd;
  border: 1px solid #999;
  cursor: pointer;
  font-weight: bold;
  font-size: 12px;
}

.homepage {
  display: flex;
  height: calc(100vh - 60px); /* Subtract top bar height */
  overflow: hidden; /* Prevent scrolling on the container */
  flex: 1;
}

.sidebar {
  width: 250px;
  min-width: 250px; /* Prevent sidebar from shrinking */
  background-color: #DE9BC4;
  background-image: linear-gradient(45deg, #DE9BC4 25%, transparent 25%), 
                    linear-gradient(-45deg, #DE9BC4 25%, transparent 25%), 
                    linear-gradient(45deg, transparent 75%, #DE9BC4 75%), 
                    linear-gradient(-45deg, transparent 75%, #DE9BC4 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  padding: 20px 0;
  overflow: hidden; /* No scrolling on sidebar */
  flex-shrink: 0; /* Prevent sidebar from shrinking */
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 50;
}

.main-content {
  flex: 1; /* Take up remaining space */
  overflow-y: auto; /* Enable vertical scrolling */
  overflow-x: hidden; /* Hide horizontal scrollbar */
  padding: 20px;
  background: #f5f5f5;
  height: 100%; /* Full height of container */
  position: relative;
  z-index: 10;
}

/* Sidebar navigation styling */
.logo-link {
  display: block;
  text-decoration: none;
  text-align: center;
  margin-bottom: 20px;
}

.sidebar .logo {
  width: 180px;
  cursor: pointer;
  transition: transform 0.3s ease;
  display: block;
  margin: 0 auto;
}

.sidebar .logo:hover {
  transform: scale(1.05);
}

.mail, .pictures, .calendar, .chat {
  margin-bottom: 10px;
}

.mail-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 16px;
  font-family: "Montserrat", serif;
  color: #603F83;
  width: 100%;
  text-align: center;
  padding: 15px 10px;
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.3);
  transition: background-color 0.3s ease;
  border-radius: 8px;
  margin: 0 10px;
}

.mail-link:hover {
  background-color: #6dce87;
  color: white;
}

.mail-icon, .film-icon, .calendar-icon {
  width: 40px;
  height: auto;
  margin-bottom: 8px;
}

.chat-icon {
  width: 80px;
  height: auto;
  margin-bottom: 8px;
}

/* Add some padding to the bottom of content to ensure good scrolling */
.main-content > * {
  margin-bottom: 20px;
}

.main-content > *:last-child {
  margin-bottom: 40px; /* Extra space at bottom */
}

/* Improve scrollbar styling */
.main-content::-webkit-scrollbar {
  width: 12px;
}

.main-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 6px;
}

.main-content::-webkit-scrollbar-thumb {
  background: #DE9BC4;
  border-radius: 6px;
}

.main-content::-webkit-scrollbar-thumb:hover {
  background: #c789b3;
}

/* Welcome content styling */
.welcome-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
}

.welcome-text {
  background: rgba(255, 255, 255, 0.9);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.welcome-text h1 {
  color: #DE9BC4;
  font-size: 1.8rem;
  margin-bottom: 15px;
  text-align: center;
}

.welcome-text p {
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.welcome-text ul {
  color: #333;
  margin: 15px 0;
  padding-left: 20px;
}

.welcome-text li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.love-note {
  text-align: center;
  font-style: italic;
  color: #603F83;
  font-weight: 600;
  font-size: 1.1rem !important;
}

/* Loading and page content styles */
.loading {
    text-align: center;
    padding: 50px;
    font-size: 1.2rem;
    color: #666;
}

.page-content {
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 800px;
}

/* Add some visual interest to long content */
.page-content h2 {
  color: #DE9BC4;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #DE9BC4;
}

.page-content h3 {
  color: #603F83;
  margin: 20px 0 10px 0;
}

/* Style lists better */
.page-content ul {
  padding-left: 25px;
  margin: 15px 0;
}

.page-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* Add visual separation between sections */
.page-content .section {
  margin: 30px 0;
  padding: 20px;
  background: rgba(222, 155, 196, 0.05);
  border-left: 4px solid #DE9BC4;
  border-radius: 8px;
}

/* Message form styling */
.message-form {
  margin-top: 20px;
  padding: 15px;
  background: rgba(222, 155, 196, 0.1);
  border-radius: 8px;
}

.message-form h3 {
  color: #603F83;
  margin-bottom: 10px;
}

.message-form textarea {
  width: 100%;
  height: 100px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 10px;
  font-family: "Montserrat", Arial, sans-serif;
  resize: vertical;
}

.message-form button {
  background: #DE9BC4;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-family: "Montserrat", Arial, sans-serif;
  transition: background 0.3s ease;
}

.message-form button:hover {
  background: #c789b3;
}

/* Photo gallery specific styles */
.photo-item {
    position: relative;
    overflow: hidden;
}

.photo-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.photo-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Add a subtle overlay hint that images are clickable */
.photo-item::after {
    content: '🔍';
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(222, 155, 196, 0.8);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.photo-item:hover::after {
    opacity: 1;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .sidebar {
    width: 200px;
    min-width: 200px;
  }
  
  .sidebar .logo {
    width: 150px;
  }
  
  .mail-link {
    font-size: 14px;
    padding: 12px 8px;
  }
  
  .mail-icon, .film-icon, .calendar-icon {
    width: 35px;
  }
  
  .chat-icon {
    width: 70px;
  }
  
  .welcome-text h1 {
    font-size: 1.5rem;
  }
  
  .welcome-text p, .welcome-text li {
    font-size: 0.9rem;
  }
  
  .main-content {
    padding: 15px;
  }
  
  .top-bar {
    height: 50px;
  }
  
  .homepage {
    height: calc(100vh - 50px);
  }
}

@media (max-width: 480px) {
  .sidebar {
    width: 180px;
    min-width: 180px;
  }
  
  .sidebar .logo {
    width: 130px;
  }
  
  .mail-link {
    font-size: 12px;
    padding: 10px 5px;
  }
  
  .mail-icon, .film-icon, .calendar-icon {
    width: 30px;
  }
  
  .chat-icon {
    width: 60px;
  }
  
  .main-content {
    padding: 10px;
  }
  
  .title {
    font-size: 1rem;
  }
}

.website-link {
    display: block;
    text-decoration: none;
    margin-top: 30px;
    transition: all 0.3s ease;
}

.entry-link-container {
    background: linear-gradient(135deg, #DE9BC4 0%, #603F83 100%);
    border-radius: 15px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.entry-link-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.website-link:hover .entry-link-container {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.website-link:hover .entry-link-container::before {
    left: 100%;
}

.entry-icon {
    font-size: 1.8rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
}

.entry-text {
    display: flex;
    flex-direction: column;
    color: white;
    flex-grow: 1;
}

.entry-label {
    font-size: 0.8rem;
    opacity: 0.9;
    font-weight: 400;
    line-height: 1;
}

.entry-title {
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.2;
    margin-top: 2px;
}

.entry-arrow {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.website-link:hover .entry-arrow {
    transform: translateX(3px);
    opacity: 1;
}

/* Alternative compact version */
.website-link.compact {
    margin-top: 20px;
}

.website-link.compact .entry-link-container {
    padding: 12px 16px;
    border-radius: 25px;
}

.website-link.compact .entry-icon {
    font-size: 1.4rem;
    width: 32px;
    height: 32px;
}

.website-link.compact .entry-text {
    gap: 0;
}

.website-link.compact .entry-label {
    font-size: 0.7rem;
}

.website-link.compact .entry-title {
    font-size: 0.9rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .entry-link-container {
        padding: 12px 15px;
        gap: 12px;
    }
    
    .entry-icon {
        font-size: 1.6rem;
        width: 36px;
        height: 36px;
    }
    
    .entry-label {
        font-size: 0.75rem;
    }
    
    .entry-title {
        font-size: 0.95rem;
    }
}

/* Breaking News Section Styling */
.breaking-news-section {
  margin-bottom: 20px;
}

.breaking-news-header {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  border-radius: 12px;
  padding: 15px 20px;
  box-shadow: 0 4px 12px rgba(238, 90, 36, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.breaking-news-header::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -100%;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.breaking-news-alert {
  color: white;
  font-weight: bold;
  font-size: 1.1rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  margin-bottom: 8px;
  text-align: center;
  letter-spacing: 0.5px;
}

.breaking-news-content {
  color: white;
  font-size: 0.95rem;
  line-height: 1.4;
}

.breaking-news-content p {
  margin: 5px 0;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
}

.breaking-news-content a {
  color: #fff3cd;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s ease;
}

.breaking-news-content a:hover {
  color: white;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* Responsive adjustments for breaking news */
@media (max-width: 768px) {
  .breaking-news-header {
    padding: 12px 16px;
    border-radius: 10px;
  }
  
  .breaking-news-alert {
    font-size: 1rem;
  }
  
  .breaking-news-content {
    font-size: 0.9rem;
  }
}
