/* ============================================================
       SERVICE PORTAL STYLESHEET
       Golden Ratio Consulting
       ============================================================
       
       TABLE OF CONTENTS
       1. CSS VARIABLES & RESET
       2. BODY & BACKGROUND
       3. LAYOUT & CONTAINERS
       4. HEADER & BRANDING
       5. TYPOGRAPHY
       6. WELCOME BANNER
       7. QUICK ACTIONS BUTTONS
       8. PORTAL GRID & CARDS
       9. FEATURED SECTION
       10. USER MENU & ADMIN COMPONENTS
       11. DIVIDERS
       12. FOOTER
       13. RESPONSIVE STYLES
       14. PRINT STYLES
       ============================================================ */

/* ============================================================
       1. CSS VARIABLES & RESET
============================================================ */
:root {
  --color-primary: #DAA520;
  --color-primary-dark: #B8860B;
  --color-primary-light: #FFD700;
  --transition-base: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ============================================================
       2. BODY & BACKGROUND
============================================================ */
body {
  font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: linear-gradient(135deg, #0a0a2e 0%, #16213e 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Background decoration overlay */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

/* ============================================================
       3. LAYOUT & CONTAINERS
============================================================ */
.content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
}

/* ============================================================
       4. HEADER & BRANDING
============================================================ */
.header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
}

/* Logo Styling */
.logo {
  margin-bottom: 2rem;
}

.logo img {
  max-width: 380px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.02);
}

/* Golden Ratio Symbol */
.golden-phi {
  font-size: 2.5rem;
  line-height: 1;
  color: #DAA520;
  margin-bottom: 0.5rem;
  font-family: 'Times New Roman', serif;
  text-shadow: 0 2px 10px rgba(218, 165, 32, 0.3);
}

/* ============================================================
       5. TYPOGRAPHY
============================================================ */
h1 {
  color: white;
  font-size: 2.5rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 0.5rem;
}

h1 span {
  color: #DAA520;
}

.subhead {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

/* ============================================================
       6. WELCOME BANNER
============================================================ */
.welcome-banner {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  border: 1px solid rgba(218, 165, 32, 0.3);
}

.welcome-banner h2 {
  color: white;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.welcome-banner p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

/* ============================================================
       7. QUICK ACTIONS BUTTONS
============================================================ */
.quick-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.quick-btn {
  background: rgba(218, 165, 32, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(218, 165, 32, 0.3);
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.quick-btn:hover {
  background: rgba(218, 165, 32, 0.3);
  border-color: #DAA520;
  transform: translateY(-2px);
}

/* ============================================================
       8. PORTAL GRID & CARDS
============================================================ */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* Portal Cards */
.portal-card {
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 1.8rem;
  border: 1px solid rgba(218, 165, 32, 0.2);
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
}

.portal-card:hover {
  transform: translateY(-5px);
  border-color: rgba(218, 165, 32, 0.6);
  background: rgba(0, 0, 0, 0.45);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #DAA520;
  margin-bottom: 0.5rem;
  font-family: 'Montserrat', sans-serif;
}

.card-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.card-link {
  color: #DAA520;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.card-link:hover {
  text-decoration: underline;
}

/* Admin Card Variation */
.admin-card {
  background: linear-gradient(135deg, rgba(218, 165, 32, 0.1), rgba(0, 0, 0, 0.3));
  border: 2px solid rgba(218, 165, 32, 0.3);
}

.admin-card .card-icon {
  filter: drop-shadow(0 0 5px rgba(218, 165, 32, 0.5));
}

/* ============================================================
       9. FEATURED SECTION
============================================================ */
.featured-section {
  background: rgba(218, 165, 32, 0.05);
  border-radius: 20px;
  padding: 1.5rem;
  margin: 2rem 0;
  border: 1px solid rgba(218, 165, 32, 0.2);
}

.featured-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #DAA520;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.featured-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.featured-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.featured-links a:hover {
  color: #DAA520;
}

/* ============================================================
       10. USER MENU & ADMIN COMPONENTS
============================================================ */
/* User Menu Styles */
.user-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}

.user-menu .btn-outline-small {
  background: transparent;
  border: 2px solid #DAA520;
  color: #DAA520;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.user-menu .btn-outline-small:hover {
  background: #DAA520;
  color: #0a0a2e;
  transform: translateY(-2px);
}

.user-menu .btn-primary-small {
  background: linear-gradient(135deg, #DAA520, #B8860B);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(218, 165, 32, 0.25);
}

.user-menu .btn-primary-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(218, 165, 32, 0.35);
}

/* Admin Section */
.admin-section {
  margin-top: 2rem;
}

/* ============================================================
       11. DIVIDERS
============================================================ */
.section-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 2rem 0;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(218, 165, 32, 0.3);
}

.section-divider span {
  padding: 0 1rem;
  color: #DAA520;
  font-size: 0.85rem;
  letter-spacing: 2px;
  font-weight: 600;
}

/* ============================================================
       12. FOOTER
============================================================ */
.footer-note {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================================
       13. RESPONSIVE STYLES
============================================================ */
/* Tablet and below */
@media only screen and (max-width: 768px) {
  .content {
    padding: 1.5rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .logo img {
    max-width: 200px;
  }
  
  .portal-grid {
    grid-template-columns: 1fr;
  }
  
  .welcome-banner h2 {
    font-size: 1.4rem;
  }
  
  .quick-actions {
    flex-direction: column;
  }
  
  .quick-btn {
    justify-content: center;
  }
  
  .user-menu {
    margin-left: 0;
    margin-top: 1rem;
    justify-content: center;
  }
}

/* Mobile screens */
@media only screen and (max-width: 480px) {
  h1 {
    font-size: 1.6rem;
  }
  
  .golden-phi {
    font-size: 2rem;
  }
  
  .card-title {
    font-size: 1.2rem;
  }
  
  .featured-links {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* ============================================================
       14. PRINT STYLES
============================================================ */
@media print {
  body::before {
    opacity: 0;
  }
  
  body {
    background: white;
  }
  
  .portal-card {
    background: white;
    border: 1px solid #ddd;
  }
  
  .quick-btn,
  .featured-section {
    display: none;
  }
}