/* JuniorLandCodes - Common Styles */

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

/* Base Styles */
body {
   font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
   line-height: 1.6;
   color: #333;
   background-color: #fafafa;
}

.container {
   max-width: 1200px;
   margin: 0 auto;
   padding: 0 20px;
}

/* Header Styles */
header {
   background: linear-gradient(135deg, #D9AD6C 0%, #E7CC9A 100%);
   padding: 15px 0;
   box-shadow: 0 2px 10px rgba(217, 173, 108, 0.3);
}

.header-content {
   display: grid;
   grid-template-columns: auto 1fr;
   align-items: center;
   gap: 40px;
   min-height: 60px;
}

.logo-container {
   display: flex;
   align-items: center;
   gap: 15px;
   z-index: 10;
}

.logo-container img {
   height: 45px;
   width: auto;
   object-fit: contain;
}

.company-name {
   font-size: clamp(1.2rem, 2.5vw, 1.8rem);
   font-weight: 700;
   color: #2c2c2c;
   letter-spacing: -0.5px;
}

/* Navigation Styles */
nav {
   justify-self: end;
}

.nav-list {
   display: flex;
   list-style: none;
   gap: 30px;
   flex-wrap: wrap;
   justify-content: flex-end;
}

.nav-list a {
   color: #2c2c2c;
   text-decoration: none;
   font-weight: 500;
   font-size: 0.95rem;
   padding: 8px 12px;
   border-radius: 6px;
   transition: background-color 0.2s ease;
   min-height: 44px;
   display: flex;
   align-items: center;
}

.nav-list a:hover,
.nav-list a:focus {
   background-color: rgba(255, 255, 255, 0.2);
   outline: 2px solid #2c2c2c;
   outline-offset: 2px;
}

/* Footer Styles */
footer {
   background: linear-gradient(135deg, #2c2c2c 0%, #4a4a4a 100%);
   color: #fff;
   padding: 50px 0 30px;
   margin-top: 80px;
}

.footer-content {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
   gap: 40px;
   margin-bottom: 30px;
}

.footer-section h3 {
   color: #D9AD6C;
   margin-bottom: 20px;
   font-size: 1.2rem;
   font-weight: 600;
}

.footer-section p,
.footer-section a {
   color: #e0e0e0;
   text-decoration: none;
   line-height: 1.7;
   font-size: 0.9rem;
}

.footer-section a:hover,
.footer-section a:focus {
   color: #E7CC9A;
   outline: 2px solid #E7CC9A;
   outline-offset: 2px;
}

.footer-links {
   display: flex;
   gap: 25px;
   flex-wrap: wrap;
   margin-bottom: 15px;
}

.footer-links a {
   padding: 5px 0;
   border-bottom: 1px solid transparent;
   transition: border-color 0.2s ease;
   min-height: 44px;
   display: flex;
   align-items: center;
}

.footer-links a:hover {
   border-bottom-color: #E7CC9A;
}

.footer-logo {
   height: 35px;
   width: auto;
   margin-bottom: 15px;
}

.copyright {
   text-align: center;
   padding-top: 25px;
   border-top: 1px solid #555;
   color: #bbb;
   font-size: 0.85rem;
}

/* Cookie Popup Styles */
.cookie-popup {
   position: fixed;
   bottom: 20px;
   left: 20px;
   right: 20px;
   max-width: 500px;
   background: #fff;
   padding: 25px;
   border-radius: 12px;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
   border: 2px solid #D9AD6C;
   z-index: 1000;
   transform: translateY(100px);
   opacity: 0;
   transition: all 0.3s ease;
}

.cookie-popup.show {
   transform: translateY(0);
   opacity: 1;
}

.cookie-popup h4 {
   color: #2c2c2c;
   margin-bottom: 12px;
   font-size: 1.1rem;
   font-weight: 600;
}

.cookie-popup p {
   color: #555;
   font-size: 0.9rem;
   line-height: 1.5;
   margin-bottom: 20px;
}

.cookie-buttons {
   display: flex;
   gap: 12px;
   flex-wrap: wrap;
}

.cookie-btn {
   padding: 10px 20px;
   border: none;
   border-radius: 6px;
   font-size: 0.9rem;
   font-weight: 500;
   cursor: pointer;
   transition: all 0.2s ease;
   min-height: 44px;
   display: flex;
   align-items: center;
   justify-content: center;
}

.cookie-accept {
   background: #D9AD6C;
   color: #fff;
}

.cookie-accept:hover,
.cookie-accept:focus {
   background: #E7CC9A;
   outline: 2px solid #D9AD6C;
   outline-offset: 2px;
}

.cookie-reject {
   background: #f0f0f0;
   color: #333;
}

.cookie-reject:hover,
.cookie-reject:focus {
   background: #e0e0e0;
   outline: 2px solid #D9AD6C;
   outline-offset: 2px;
}

.cookie-learn {
   background: none;
   color: #D9AD6C;
   text-decoration: underline;
   border: none;
   padding: 10px;
   font-size: 0.85rem;
}

.cookie-learn:hover,
.cookie-learn:focus {
   color: #E7CC9A;
   outline: 2px solid #D9AD6C;
   outline-offset: 2px;
}

/* Mobile Styles */
@media (max-width: 768px) {
   .header-content {
      grid-template-columns: 1fr;
      text-align: center;
      gap: 20px;
   }

   .nav-list {
      justify-content: center;
      gap: 15px;
   }

   .nav-list a {
      font-size: 0.9rem;
      padding: 6px 10px;
   }

   .footer-content {
      grid-template-columns: 1fr;
      text-align: center;
      gap: 30px;
   }

   .footer-links {
      justify-content: center;
   }

   .cookie-popup {
      position: fixed;
      top: 50%;
      left: 50%;
      right: auto;
      bottom: auto;
      transform: translate(-50%, -50%) scale(0.9);
      max-width: 90vw;
      margin: 0;
   }

   .cookie-popup.show {
      transform: translate(-50%, -50%) scale(1);
   }
}

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

   .header-content {
      gap: 15px;
   }

   .nav-list {
      gap: 10px;
   }

   .nav-list a {
      font-size: 0.85rem;
      padding: 5px 8px;
   }

   .footer-content {
      gap: 25px;
   }

   .cookie-popup {
      padding: 20px;
   }

   .cookie-buttons {
      flex-direction: column;
   }

   .cookie-btn {
      width: 100%;
   }
}