/* MiraNova Studios - Common Stylesheet */
/* This file maintains the current appearance while allowing for future customization */

/* Color utility classes */
.text-games {
  color: #4CAF50; /* Green for games */
}

.text-nova {
  color: #2196F3; /* Blue for Nova */
}

.text-lyric {
  color: #FF9800; /* Orange for Lyric */
}

.text-dev {
  color: #9C27B0; /* Purple for Dev */
}

.text-ai {
  color: #F44336; /* Red for AI */
}

.text-highlight {
  color: #007acc;
  font-weight: bold;
}

/* Basic reset and typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  padding: 5px;
  background-color: #f5f5f5;
}

.container {
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Typography */
h1 {
  color: #333;
  border-bottom: 2px solid #007acc;
  padding-bottom: 10px;
  font-size: 2rem;
}

h2 {
  color: #555;
  margin-top: 30px;
  font-size: 1.5rem;
}

h3, h4, h5, h6 {
  color: #555;
  margin-top: 20px;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #007acc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
}

/* LinkedIn icon specific styling */
img[alt="LinkedIn"] {
  height: 16px !important;
  width: 16px !important;
  display: inline !important;
  margin: 0 !important;
  vertical-align: middle;
}

.logo {
  max-width: 300px;
  margin: 10px auto 20px auto;
}

/* Navigation */
nav {
  margin-bottom: 20px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

nav a {
  display: inline-block;
  margin-right: 15px;
  margin-bottom: 8px;
  text-decoration: none;
  color: #007acc;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

nav a:hover {
  text-decoration: underline;
  background-color: #f0f8ff;
}

/* Content */
.content {
  margin-top: 20px;
}

/* Footer */
footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  color: #666;
  text-align: center;
}

/* Lists */
ul, ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Code */
code {
  background-color: #f8f9fa;
  padding: 2px 4px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
}

pre {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 5px;
  overflow-x: auto;
  margin-bottom: 1rem;
}

pre code {
  background-color: transparent;
  padding: 0;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

th, td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

th {
  background-color: #f8f9fa;
  font-weight: 600;
}

/* Blockquotes */
blockquote {
  border-left: 4px solid #007acc;
  padding-left: 1rem;
  margin: 1rem 0;
  font-style: italic;
  color: #666;
}

/* Horizontal rule styling - medium gray with no margins */
hr {
    margin: 0;
    border: none;
    border-top: 1px solid #999;
    padding-bottom: 5px;
}

.blog-post-summary hr {
    margin: 0;
    border: none;
    border-top: 1px solid #999;
    padding-bottom: 5px;
}

.blog-post .post-header hr {
    margin: 0;
    border: none;
    border-top: 1px solid #999;
    padding-bottom: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 3px;
  }
  
  .container {
    padding: 10px;
    border-radius: 4px;
  }
  
  h1 {
    font-size: 1.75rem;
    text-align: center;
  }
  
  h2 {
    font-size: 1.25rem;
  }
  
  nav {
    text-align: center;
    padding: 10px 0;
  }
  
  nav a {
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 6px 10px;
    font-size: 0.9rem;
  }
  
  .logo {
    max-width: 250px;
  }
}

/* Extra small mobile devices (320px and below) */
@media (max-width: 375px) {
  body {
    padding: 1px;
  }
  
  .container {
    padding: 5px;
  }
  
  h1 {
    font-size: 1.3rem;
  }
  
  h2 {
    font-size: 1rem;
  }
  
  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
    margin-bottom: 15px;
    padding: 5px 0;
  }
  
  nav a {
    display: inline-block;
    margin: 1px;
    padding: 3px 6px;
    font-size: 0.75rem;
    text-align: center;
    white-space: nowrap;
    min-width: fit-content;
  }
  
  .logo {
    max-width: 180px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 1px;
  }
  
  .container {
    padding: 8px;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.1rem;
  }
  
  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
  }
  
  nav a {
    display: inline-block;
    margin: 3px 2px;
    padding: 4px 8px;
    font-size: 0.85rem;
    text-align: center;
    white-space: nowrap;
  }
  
  .logo {
    max-width: 200px;
  }
}

@media (min-width: 1024px) {
  body {
    padding: 20px;
  }
  
  .container {
    padding: 40px;
  }
  
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
}

/* Contact Form Styles */
.contact-form-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-form-container h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
}

.contact-form-container p {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007acc;
    box-shadow: 0 0 0 3px rgba(0, 122, 204, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #007acc 0%, #005a9c 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #005a9c 0%, #003d6b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 204, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-status {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-status.loading {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Field validation styles */
.field-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-left: 5px;
    display: none;
}

.field-error.show {
    display: inline;
}

/* Error flash animation */
@keyframes errorFlash {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.field-error.flash {
    animation: errorFlash 0.6s ease-in-out;
}

.red-asterisk {
    color: #dc3545 !important;
}


.green-label {
    color: #28a745 !important;
}

/* reCAPTCHA styling */
.recaptcha-container {
    margin-top: 20px;
    text-align: center;
}

.recaptcha-container .g-recaptcha {
    display: inline-block;
    margin-bottom: 10px;
}

#recaptcha-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: none;
    text-align: center;
    font-weight: bold;
}

#recaptcha-error.show {
    display: block;
}

/* Mobile responsiveness for reCAPTCHA */
@media (max-width: 768px) {
    .recaptcha-container .g-recaptcha {
        transform: scale(0.8);
        transform-origin: center;
    }
}

@media (max-width: 480px) {
    .recaptcha-container .g-recaptcha {
        transform: scale(0.7);
        transform-origin: center;
    }
}

/* Blog post styles */
.blog-post-summary {
    margin-bottom: 30px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
}

.blog-post-summary .post-title {
    margin-bottom: 5px;
    margin-top: 0;
}

.blog-post-summary .post-title a {
    color: #1e3a8a;
    text-decoration: none;
}

.blog-post-summary .post-title a:hover {
    color: #1e40af;
    text-decoration: underline;
}

.blog-post-summary .post-meta {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 8px;
    font-style: italic;
}

.blog-post-summary .post-meta .post-date {
    margin-right: 15px;
    font-style: italic;
}

.blog-post-summary .post-meta .post-author {
    font-style: italic;
}

.blog-post-summary .post-content {
    margin-bottom: 15px;
    margin-top: 8px;
    line-height: 1.7;
}

.blog-post-summary .post-content h1,
.blog-post-summary .post-content h2,
.blog-post-summary .post-content h3,
.blog-post-summary .post-content h4,
.blog-post-summary .post-content h5,
.blog-post-summary .post-content h6 {
    margin-top: 10px;
    margin-bottom: 8px;
    color: #333;
}

.blog-post-summary .post-content p {
    margin-bottom: 15px;
}

.blog-post-summary .post-content ul,
.blog-post-summary .post-content ol {
    margin-bottom: 15px;
    padding-left: 30px;
}

.blog-post-summary .post-content li {
    margin-bottom: 5px;
}

.blog-post-summary .post-content blockquote {
    margin: 15px 0;
    padding: 10px 15px;
    background: #f8f9fa;
    border-left: 4px solid #007acc;
    font-style: italic;
}

.blog-post-summary .post-content code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.blog-post-summary .post-content pre {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 15px 0;
}

.blog-post-summary .post-content pre code {
    background: none;
    padding: 0;
}

/* Individual blog post styles */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post .post-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.blog-post .post-title {
    margin-bottom: 15px;
    color: #1e3a8a;
}

.blog-post .post-meta {
    color: #666;
    font-size: 0.9em;
    font-style: italic;
}

.blog-post .post-meta .post-date {
    margin-right: 15px;
    font-style: italic;
}

.blog-post .post-meta .post-author {
    font-style: italic;
}

.blog-post .post-content {
    line-height: 1.7;
}

.blog-post .post-content h1,
.blog-post .post-content h2,
.blog-post .post-content h3,
.blog-post .post-content h4,
.blog-post .post-content h5,
.blog-post .post-content h6 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
}

.blog-post .post-content p {
    margin-bottom: 15px;
}

.blog-post .post-content ul,
.blog-post .post-content ol {
    margin-bottom: 15px;
    padding-left: 30px;
}

.blog-post .post-content li {
    margin-bottom: 5px;
}

.blog-post .post-content blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    background: #f8f9fa;
    border-left: 4px solid #007acc;
    font-style: italic;
}

.blog-post .post-content code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.blog-post .post-content pre {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 20px 0;
}

.blog-post .post-content pre code {
    background: none;
    padding: 0;
}

/* Archive page styles */
.pulse-archive h1 {
    margin-bottom: 20px;
}

.pulse-archive p {
    margin-bottom: 30px;
    color: #666;
}

.no-archive-posts {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.no-archive-posts p {
    color: #666;
    font-style: italic;
    margin: 0;
}
