/* Porteføljer spesifikk CSS */

:root {
  --primary-color: #00A7E1;
  --primary-light: rgba(0, 167, 225, 0.1);
  --primary-hover: rgba(0, 167, 225, 0.2);
  --bg-dark: #02111B;
  --bg-darker: #041C2C;
  --bg-hover: #052541;
  --text-light: rgba(255, 255, 255, 0.9);
  --text-muted: rgba(255, 255, 255, 0.6);
  --border-color: rgba(0, 167, 225, 0.3);
  --shadow-color: rgba(0, 0, 0, 0.3);
  --card-radius: 8px;
  --transition-speed: 0.3s;
}

/* General layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero {
  padding: 2rem 0 1.5rem;
  text-align: center;
  background-color: rgba(4, 28, 44, 0.6);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #00A7E1;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9);
}

/* Pricing Section - Exact copy from produkter.css */
.pricing-section {
  padding: 20px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 20px 0;
}

.pricing-card {
  background-color: var(--bg-darker);
  border-radius: var(--card-radius);
  border: 1px solid var(--border-color);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px var(--shadow-color);
  border-color: var(--primary-color);
}

.pricing-card.featured {
  transform: scale(1.05);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px var(--shadow-color);
  z-index: 2;
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

/* Featured tag - sentrert på toppen av border */
.featured-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  color: var(--bg-dark);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  z-index: 10;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pricing-header {
  padding: 25px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-hover);
}

.pricing-header h2 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.pricing-header p {
  color: var(--text-muted);
  margin: 0;
}

.price {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
  text-align: center;
  padding: 20px;
  background-color: var(--bg-darker);
}

.price-period {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: normal;
}

.feature-list {
  list-style: none;
  padding: 25px;
  margin: 0;
  flex-grow: 1;
}

.feature-list li {
  color: var(--text-light);
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
}

.feature-list li:last-child {
  margin-bottom: 0;
}

.feature-list li::before {
  content: "✓";
  color: var(--primary-color);
  position: absolute;
  left: 0;
}

.pricing-card .btn {
  margin: 0 25px 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-speed) ease;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--bg-dark);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary-color);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-hover);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-light);
  border-color: var(--border-color);
}

.btn-outline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-large {
  padding: 14px 28px;
  font-size: 1.1rem;
}

/* More Info Section - Enkel knapp */
.more-info-section {
  margin-top: 15px;
  border-top: 1px solid var(--border-color);
}

.more-info-btn {
  width: 100%;
  background: none;
  border: none;
  color: var(--primary-color);
  padding: 15px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.more-info-btn:hover {
  background-color: var(--bg-hover);
  color: #ffffff;
}

.more-info-btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.info-icon {
  font-size: 1rem;
}

/* Disclaimer - Compact version */
.disclaimer-section {
  margin: 40px 0 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.disclaimer-toggle {
  background-color: var(--bg-darker);
  border: 1px solid rgba(255, 193, 7, 0.4);
  border-radius: 6px;
  padding: 12px 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #FFA726;
  font-weight: 500;
  font-size: 0.9rem;
}

.disclaimer-toggle:hover {
  border-color: #FFA726;
  background-color: rgba(255, 167, 38, 0.05);
}

.disclaimer-toggle .warning-icon {
  color: #FFA726;
  margin-right: 8px;
  font-size: 1rem;
}

.disclaimer-toggle .toggle-text {
  text-align: center;
}

.disclaimer-toggle::after {
  content: "+";
  font-size: 1.1rem;
  color: #FFA726;
  transition: transform 0.3s ease;
  width: 18px;
  text-align: center;
  margin-left: 8px;
}

.disclaimer-toggle.active::after {
  content: "−";
  transform: rotate(180deg);
}

.disclaimer-content {
  background-color: var(--bg-darker);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-top: none;
  border-radius: 0 0 6px 6px;
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

.disclaimer-toggle.active + .disclaimer-content {
  max-height: 200px;
  padding: 15px 18px;
  border-top: 1px solid rgba(255, 193, 7, 0.2);
}

.disclaimer-message {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  text-align: left;
  margin: 0;
  line-height: 1.5;
}

.disclaimer-message a {
  color: var(--primary-color);
  text-decoration: none;
}

.disclaimer-message a:hover {
  text-decoration: underline;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.modal-content {
  background-color: var(--bg-darker);
  margin: 5% auto;
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  padding: 20px 25px 15px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-hover);
}

.modal-header h3 {
  color: var(--primary-color);
  margin: 0;
  font-size: 1.4rem;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--primary-color);
}

.modal-body {
  padding: 25px;
}

.modal-body p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.modal-body p:last-child {
  margin-bottom: 0;
}

.modal-body strong {
  color: var(--primary-color);
}

/* Responsive design */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .pricing-card.featured {
    transform: scale(1);
  }
  
  .pricing-card.featured:hover {
    transform: translateY(-10px);
  }
  
  .modal-content {
    margin: 10% auto;
    width: 95%;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .bottom-cta {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2rem 0;
  }
  
  .pricing-card {
    margin: 0 10px;
  }
  
  .bottom-cta h2 {
    font-size: 1.5rem;
  }
}