/* /assets/css/style.v2.css */
/* Redesigned for iCloudExperts - Professional Light Theme */

/* 1. Root Variables & Global Styles
-------------------------------------------------- */
:root {
  --primary-color: #007aff; /* A vibrant, professional blue */
  --primary-hover-color: #0056b3;
  --secondary-color: #f0f0f7; /* A very light gray for subtle backgrounds */
  --text-color: #1d1d1f; /* Apple's dark gray for text */
  --text-muted-color: #6e6e73;
  --border-color: #d2d2d7;
  --header-height: 70px;
  --border-radius: 12px;
  --transition-speed: 0.3s;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #fdfdfd;
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.main-content {
  padding-top: var(--header-height);
  min-height: 100vh;
}

/* 2. Header & Navigation
-------------------------------------------------- */
#main-navbar {
  height: var(--header-height);
  background-color: transparent;
  transition: background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease, border-bottom var(--transition-speed) ease;
  border-bottom: 1px solid transparent;
}

#main-navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-color);
  display: flex;
  align-items: center;
}

.navbar-brand img {
  height: 36px;
  margin-right: 12px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-color);
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: color var(--transition-speed) ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color);
}

.dropdown-menu {
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
}

.dropdown-item {
  font-weight: 500;
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

.dropdown-item:active {
    background-color: var(--primary-color);
    color: #fff;
}

/* Profile Avatar & Badge */
.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
}

#profileDropdown {
    padding-right: 0;
}

.pro-badge {
    display: inline-block;
    background-image: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    padding: 0.2em 0.6em;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
}


/* 3. Buttons
-------------------------------------------------- */
.btn-primary-custom {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  border: none;
  padding: 10px 22px;
  border-radius: var(--border-radius);
  transition: transform var(--transition-speed) ease, background-color var(--transition-speed) ease;
}

.btn-primary-custom:hover {
  background-color: var(--primary-hover-color);
  transform: translateY(-2px);
  color: white;
}

.btn-secondary-custom {
  background-color: var(--secondary-color);
  color: var(--text-color);
  font-weight: 600;
  border: none;
  padding: 10px 22px;
  border-radius: var(--border-radius);
  transition: transform var(--transition-speed) ease, background-color var(--transition-speed) ease;
}

.btn-secondary-custom:hover {
  background-color: #e0e0e9;
  transform: translateY(-2px);
  color: var(--text-color);
}


/* 4. Animated Navbar Toggler
-------------------------------------------------- */
.navbar-toggler {
  border: none;
  padding: 0;
  outline: none;
  box-shadow: none;
}

.navbar-toggler .line {
  width: 24px;
  height: 2px;
  background-color: var(--text-color);
  display: block;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  border-radius: 2px;
}

.navbar-toggler.active .line1 {
  transform: translateY(7px) rotate(45deg);
}
.navbar-toggler.active .line2 {
  opacity: 0;
}
.navbar-toggler.active .line3 {
  transform: translateY(-7px) rotate(-45deg);
}


/* 5. Footer
-------------------------------------------------- */
.footer-section {
  padding: 60px 0 30px 0;
  border-top: 1px solid var(--border-color);
}

.footer-brand {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a, .footer-contact a {
  color: var(--text-muted-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

.footer-links a:hover, .footer-contact a:hover {
  color: var(--primary-color);
}

.footer-contact li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.footer-contact i {
    color: var(--primary-color);
    margin-right: 10px;
}

.social-icons .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  color: var(--text-muted-color);
  margin-right: 10px;
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

.social-icons .social-icon:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.footer-divider {
  margin: 40px 0 20px;
  border-color: rgba(0,0,0,0.07);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom .disclaimer {
    font-size: 0.8rem;
}


/* 6. Responsive Adjustments
-------------------------------------------------- */
@media (max-width: 991.98px) {
  #main-navbar .navbar-collapse {
    background-color: #fff;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
  }

  #main-navbar.scrolled .navbar-collapse {
    background-color: #f8f9fa;
  }

  .navbar-nav {
      width: 100%;
  }
  
  #main-navbar .mx-auto {
      margin-left: 0 !important;
      margin-right: 0 !important;
  }
  
  #main-navbar .d-flex {
      flex-direction: column;
      align-items: stretch !important;
      margin-top: 1rem;
  }
  
  #main-navbar .d-flex .btn {
      width: 100%;
      margin: 0.5rem 0 !important;
  }
}

@media (max-width: 767.98px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
