/* 
 * Custom Theme Styles
 * This file is loaded AFTER plucss.min.css and theme.min.css
 * Override any styles here
 */

/* ========================================
   CSS Variables - Customize these!
   ======================================== */
:root {
  /* Primary colors - Blue tones for IT support */
  --custom-primary: #87CEEB; /* SkyBlue - light blue */
  --custom-secondary: #4682B4; /* SteelBlue - slightly darker blue */
  --custom-accent: #FFD700; /* Gold - for highlights/buttons */
  
  /* Background colors - Clear ambiance */
  --custom-bg-light: #F8F8F8; /* Very light grey */
  --custom-bg-dark: #2C3E50; /* Dark blue-grey for footer */
  --custom-bg-header: #2C3E50; /* Light Cyan - very pale blue */
  --custom-bg-body: #FFFFFF; /* Pure white for main content */
  
  /* Text colors - Dark for clear readability */
  --custom-text-light: #333333;
  --custom-text-dark: #F0F0F0;
  --custom-text-muted: #6c757d;
  
  /* Fonts - Professional and clean */
  --custom-font-body: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --custom-font-heading: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  
  /* Spacing */
  --custom-spacing-sm: 0.5rem;
  --custom-spacing-md: 1rem;
  --custom-spacing-lg: 2rem;
  
  /* Border radius */
  --custom-radius: 0.25rem;
  
  /* Shadows */
  --custom-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* Softer shadow */
}

/* ========================================
   Global Styles
   ======================================== */
body {
  font-family: var(--custom-font-body);
  color: var(--custom-text-light);
  background-color: var(--custom-bg-body);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--custom-font-heading);
  color: var(--custom-secondary);
  font-weight: 600;
  margin-top: var(--custom-spacing-lg);
  margin-bottom: var(--custom-spacing-md);
}

a {
  color: var(--custom-secondary);
  text-decoration: none;
}

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

.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--custom-spacing-md);
  padding-right: var(--custom-spacing-md);
}

/* Main content area */
.main {
  padding: var(--custom-spacing-lg) 0;
  background-color: var(--custom-bg-light);
  box-shadow: var(--custom-shadow);
  margin-top: -50px; /* Overlap with header slightly for visual interest */
  position: relative;
  z-index: 1;
}

/* ========================================
   Header Styles
   ======================================== */
.header {

  background-color: var(--custom-bg-header);
  /*background-image: url('../img/banner.png');*/
  background-size: cover;
  background-position: center;
  min-height: 250px; /* Increased height for banner */
  display: flex;
  align-items: center;
  position: relative;
  /*color: var(--custom-text-dark); /* Ensure text is visible over image */
  padding: var(--custom-spacing-lg) 0;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /*background-color: rgba(0, 0, 0, 0.3); /* Semi-transparent overlay */
  z-index: 0;
}

.header > .container {
  position: relative;
  z-index: 1;
}

.header .logo {
  text-align: center;
  padding: var(--custom-spacing-md) 0;
}

.header .logo h1 {
  font-size: 2.5rem;
  margin-bottom: var(--custom-spacing-sm);
  color: #FFFFFF; /* White for main title on banner */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.header .logo h1 a {
  color: inherit;
  text-decoration: none;
}

.header .logo h2 {
  font-size: 1.2rem;
  color: #E0E0E0; /* Lighter white for subtitle */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
  margin-top: 0;
}

/* ========================================
   Navigation Styles
   ======================================== */
.nav {
  background-color: rgba(255, 255, 255, 0.9); /* Slightly transparent white for nav */
  border-radius: var(--custom-radius);
  padding: var(--custom-spacing-sm) var(--custom-spacing-md);
  box-shadow: var(--custom-shadow);
  margin-top: var(--custom-spacing-md);
}

.nav .menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.nav .menu li {
  margin: 0 var(--custom-spacing-md);

}

.nav .menu li a {
  display: block;
  padding: var(--custom-spacing-sm) 0;
  color: var(--custom-secondary);
  font-weight: bold;
  text-transform: uppercase;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  border-bottom: 2px solid transparent;
}

.nav .menu li a:hover,
.nav .menu li.active a {
  color: var(--custom-primary);
  border-bottom: 2px solid var(--custom-primary);
  text-decoration: none;
}

/* Responsive menu toggle */
.responsive-menu label {
  display: none; /* Hidden by default */
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--custom-spacing-sm);
  color: var(--custom-secondary);
}

.responsive-menu input[type="checkbox"] {
  display: none;
}

@media (max-width: 767px) {
  .header .logo h1 {
    font-size: 1.8rem;
  }
  .header .logo h2 {
    font-size: 1rem;
  }
  .nav {
    margin-top: var(--custom-spacing-sm);
  }
  .nav .menu {
    flex-direction: column;
    text-align: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }
  .nav .menu li {
    margin: 0;
    border-bottom: 1px solid #eee;
  }
  .nav .menu li:last-child {
    border-bottom: none;
  }
  .nav .menu li a {
    padding: var(--custom-spacing-md) 0;
  }
  .responsive-menu label {
    display: block;
    text-align: right;
  }
  .responsive-menu input[type="checkbox"]:checked ~ .menu {
    max-height: 500px; /* Adjust based on number of menu items */
    transition: max-height 0.5s ease-in;
  }
}


/* ========================================
   Main Content Styles
   ======================================== */
.article {
  background-color: #FFFFFF;
  padding: var(--custom-spacing-lg);
  margin-bottom: var(--custom-spacing-lg);
  border-radius: var(--custom-radius);
  box-shadow: var(--custom-shadow);
}

.article header {
  margin-bottom: var(--custom-spacing-md);
  /*border-bottom: 1px solid #eee;*/
  padding-bottom: var(--custom-spacing-md);
}

.article header h2 {
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: var(--custom-spacing-sm);
}

.article header h2 a {
  color: var(--custom-secondary);
  text-decoration: none;
}

.article header h2 a:hover {
  color: var(--custom-primary);
  text-decoration: underline;
}

.art-date, .written-by, .art-nb-com, .classified-in, .tags {
  display: inline-block;
  margin-right: var(--custom-spacing-md);
  color: var(--custom-text-muted);
  font-size: 0.9rem;
}

.art-date time {
  font-weight: 500;
}

.article img {
  max-width: 100%;
  height: auto;
  border-radius: var(--custom-radius);
  margin-bottom: var(--custom-spacing-md);
}

/* Pagination */
.pagination {
  padding: var(--custom-spacing-md) 0;
  margin-top: var(--custom-spacing-lg);
}

.pagination a, .pagination span {
  display: inline-block;
  padding: var(--custom-spacing-sm) var(--custom-spacing-md);
  margin: 0 var(--custom-spacing-sm);
  border: 1px solid var(--custom-primary);
  border-radius: var(--custom-radius);
  color: var(--custom-primary);
  transition: all 0.3s ease;
}

.pagination a:hover {
  background: var(--custom-primary);
  color: #FFFFFF;
  text-decoration: none;
}

.pagination .active {
  background: var(--custom-primary);
  color: #FFFFFF;
  border-color: var(--custom-primary);
}

/* ========================================
   Sidebar Styles
   ======================================== */
.aside {
  padding: var(--custom-spacing-lg);
  background-color: #FFFFFF;
  border-radius: var(--custom-radius);
  box-shadow: var(--custom-shadow);
  margin-bottom: var(--custom-spacing-lg);
}

.aside h3 {
  font-size: 1.3rem;
  color: var(--custom-secondary);
  border-bottom: 2px solid var(--custom-primary);
  padding-bottom: var(--custom-spacing-sm);
  margin-top: 0;
  margin-bottom: var(--custom-spacing-md);
}

.aside ul {
  list-style: none;
  padding: 0;
  margin-bottom: var(--custom-spacing-lg);
}

.aside ul li {
  margin-bottom: var(--custom-spacing-sm);
}

.aside ul li a {
  color: var(--custom-text-light);
  display: block;
  padding: 3px 0;
  transition: color 0.3s ease;
}

.aside ul li a:hover {
  color: var(--custom-primary);
  padding-left: 5px;
  text-decoration: none;
}

.aside .tag-list li {
  display: inline-block;
  margin: 0 5px 5px 0;
}

.aside .tag-list li a {
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: var(--custom-radius);
  padding: 5px 10px;
  font-size: 0.9rem;
  color: var(--custom-text-muted);
}

.aside .tag-list li a:hover {
  background-color: var(--custom-primary);
  color: #FFFFFF;
  border-color: var(--custom-primary);
  padding-left: 10px; /* Reset padding-left added by li a:hover */
}

/* ========================================
   Footer Styles
   ======================================== */
.footer {
  background: var(--custom-bg-dark);
  color: var(--custom-text-dark);
  padding: var(--custom-spacing-lg) 0;
  text-align: center;
  margin-top: var(--custom-spacing-lg);
}

.footer p {
  margin-bottom: var(--custom-spacing-sm);
  font-size: 0.9rem;
}

.footer a {
  color: var(--custom-primary);
}

.footer a:hover {
  color: var(--custom-accent);
  text-decoration: underline;
}

/* ========================================
   Buttons and Forms
   ======================================== */
.btn.blue, button.blue {
  background-color: var(--custom-secondary);
  border-color: var(--custom-secondary);
  color: #FFFFFF;
  padding: 0.75rem 1.5rem;
  border-radius: var(--custom-radius);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn.blue:hover, button.blue:hover {
  background-color: var(--custom-primary);
  border-color: var(--custom-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Form elements */
input[type="text"],
input[type="email"],
input[type="url"],
textarea {
  border: 1px solid #ddd;
  border-radius: var(--custom-radius);
  padding: 0.75rem;
  width: 100%;
  box-sizing: border-box;
  margin-top: 5px;
  margin-bottom: var(--custom-spacing-md);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
textarea:focus {
  border-color: var(--custom-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.3);
}

label {
  font-weight: 500;
  color: var(--custom-secondary);
}

/* Comments section */
#comments {
  margin-top: var(--custom-spacing-lg);
  font-size: 1.8rem;
  color: var(--custom-secondary);
  border-bottom: 2px solid var(--custom-primary);
  padding-bottom: var(--custom-spacing-sm);
}

.comment {
  background-color: #fefefe;
  border: 1px solid #eee;
  border-radius: var(--custom-radius);
  padding: var(--custom-spacing-md);
  margin-bottom: var(--custom-spacing-md);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.comment small {
  color: var(--custom-text-muted);
  font-size: 0.85rem;
}

.comment blockquote {
  margin: var(--custom-spacing-sm) 0 0 0;
  padding: 0;
  border-left: 3px solid var(--custom-primary);
  padding-left: var(--custom-spacing-md);
  color: var(--custom-text-light);
}

#comment-form {
  background-color: #FFFFFF;
  padding: var(--custom-spacing-lg);
  margin-top: var(--custom-spacing-lg);
  border-radius: var(--custom-radius);
  box-shadow: var(--custom-shadow);
}

#comment-form h2 {
  font-size: 1.5rem;
  margin-top: 0;
}

/* ========================================
   Go to Top Button
   ======================================== */
.gotop a {
  background: var(--custom-secondary);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: var(--custom-spacing-lg);
  right: var(--custom-spacing-lg);
  box-shadow: var(--custom-shadow);
  transition: background 0.3s ease, transform 0.3s ease;
  z-index: 10;
}

.gotop a:hover {
  background: var(--custom-primary);
  transform: translateY(-5px);
}

.gotop a img {
  width: 20px;
  height: 20px;
  filter: invert(100%); /* Make arrow white */
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 767px) {
  .header {
    min-height: 180px;
  }
  .header .logo h1 {
    font-size: 1.8rem;
  }
  .header .logo h2 {
    font-size: 1rem;
  }
  .article {
    padding: var(--custom-spacing-md);
  }
  .aside {
    padding: var(--custom-spacing-md);
    margin-top: var(--custom-spacing-md);
  }
  .gotop a {
    bottom: var(--custom-spacing-md);
    right: var(--custom-spacing-md);
  }
}

/* Breadcrumb */
.breadcrumb {
  background-color: #f0f0f0;
  padding: var(--custom-spacing-sm) var(--custom-spacing-md);
  border-radius: var(--custom-radius);
  margin-bottom: var(--custom-spacing-md);
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.breadcrumb li {
  margin-right: var(--custom-spacing-sm);
  color: var(--custom-text-muted);
}

.breadcrumb li a {
  color: var(--custom-secondary);
}

.breadcrumb li a:hover {
  color: var(--custom-primary);
  text-decoration: none;
}

.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: var(--custom-spacing-sm);
}

/* Messages d'erreur/alerte */
.alert.orange {
  background-color: #FFF3E0; /* Light orange */
  border-color: #FFB74D; /* Orange */
  color: #E65100; /* Dark orange text */
  padding: var(--custom-spacing-md);
  border-radius: var(--custom-radius);
  margin-bottom: var(--custom-spacing-md);
}
