/* Shared styles for all SimpleStruct pages */

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Header Navigation */
.header {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.85) 0%, rgba(0, 68, 153, 0.85) 100%), 
              url('CV.jpg') center/cover no-repeat;
  color: white;
  padding: 40px 20px;
  margin: -20px -20px 20px -20px;
  border-radius: 5px 5px 0 0;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header.header-home {
  min-height: 300px;
}

.header h1 {
  margin: 0 0 15px 0;
  font-size: 28px;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.header p {
  margin: 0;
  font-size: 14px;
  opacity: 1;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 15px 0 0 0;
}

.nav a {
  background: white;
  color: #0066cc;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.nav a:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.nav a.current {
  background: #0066cc;
  color: white;
}

/* Content Styling */
h1 {
  color: #333;
  border-bottom: 3px solid #0066cc;
  padding-bottom: 10px;
}

h2 {
  color: #0066cc;
  margin-top: 20px;
}

h3 {
  color: #555;
}

a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: monospace;
}

/* Cards and Resources */
.resource {
  margin: 20px 0;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  transition: box-shadow 0.3s ease;
}

.resource:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

img {
  max-width: 100%;
  border-radius: 5px;
  margin: 10px 0;
}

/* Steps and Process */
.step {
  margin: 15px 0;
  padding: 10px;
  background: #f9f9f9;
  border-left: 4px solid #0066cc;
}

.step-number {
  display: inline-block;
  background: #0066cc;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  margin-right: 10px;
  font-weight: bold;
}

/* Simple Explanation for Kids */
.simple-explanation {
  background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 12px 15px;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: #856404;
}

/* Tech Stack Grid */
.tech-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 15px 0;
}

.tech-item {
  padding: 10px;
  background: #f0f0f0;
  border-radius: 5px;
}

.tech-item strong {
  color: #0066cc;
}

/* Review Items */
.review {
  margin: 15px 0;
  padding: 15px;
  background: #f9f9f9;
  border-left: 4px solid #28a745;
  border-radius: 4px;
}

.review-author {
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.review-rating {
  color: #ffc107;
  font-size: 18px;
  margin-bottom: 8px;
}

.review-rating i {
  margin-right: 2px;
}

.review-text {
  color: #555;
  line-height: 1.6;
}

.review-date {
  color: #999;
  font-size: 12px;
  margin-top: 8px;
}

/* Login Styles */
.login-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 30px 0;
}

.login-box {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-box h2 {
  margin-top: 0;
  color: #333;
}

.login-box p {
  color: #666;
  margin-bottom: 25px;
}

.g_id_signin {
  margin: 20px 0;
}

.login-status {
  margin-top: 20px;
  padding: 15px;
  border-radius: 5px;
}

.success-message {
  background: #d4edda;
  color: #155724;
  padding: 12px;
  border-radius: 4px;
  border-left: 4px solid #28a745;
}

.success-message a {
  color: #155724;
  font-weight: bold;
  text-decoration: underline;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 12px;
  border-radius: 4px;
  border-left: 4px solid #f5c6cb;
}

.login-info {
  padding: 30px;
  background: #f0f7ff;
  border-radius: 8px;
  border-left: 4px solid #0066cc;
}

.login-info h3 {
  margin-top: 0;
  color: #0066cc;
}

.login-info ul {
  list-style: none;
  padding: 0;
  margin: 15px 0 0 0;
}

.login-info li {
  padding: 8px 0;
  color: #555;
  border-bottom: 1px solid #e0e0e0;
}

.login-info li:last-child {
  border-bottom: none;
}

/* User Profile Display */
.user-profile {
  background: white;
  padding: 10px 15px;
  border-radius: 4px;
  margin-left: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-profile-name {
  color: #333;
  font-weight: bold;
}

.user-profile-logout {
  background: #ff6b6b;
  color: white;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 12px;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.user-profile-logout:hover {
  background: #ff5252;
}

@media (max-width: 768px) {
  .login-container {
    grid-template-columns: 1fr;
  }
}

/* Social Login Styles */
.social-login {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 30px 0;
}

.social-option {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 48px;
  overflow: hidden;
  border-radius: 6px;
}

/* Google Button Container */
.social-option #g_id_onload {
  display: none;
}

.social-option .g_id_signin {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
}

/* Facebook Button Container */
.social-option .fb-login-button {
  width: 100% !important;
  display: flex !important;
  height: 48px !important;
  line-height: 48px !important;
}

.fb_iframe_widget {
  width: 100% !important;
  height: 48px !important;
}

.fb_iframe_widget span {
  width: 100% !important;
  height: 48px !important;
  display: inline-flex !important;
  align-items: center !important;
}

.fb_iframe_widget iframe {
  width: 100% !important;
  height: 48px !important;
}

/* Twitter Button Container */
#twitter-option {
  min-height: auto;
}

#twitter-option .oauth-button {
  width: 100%;
  height: 48px;
  padding: 0 16px !important;
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%) !important;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#twitter-option .oauth-button:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  transform: translateY(-3px);
}

#twitter-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

#twitter-container button {
  width: 100%;
}

/* LinkedIn Button Container */
#linkedin-option {
  min-height: auto;
}

#linkedin-option .oauth-button {
  width: 100%;
  height: 48px;
  padding: 0 16px !important;
  background: linear-gradient(135deg, #0a66c2 0%, #084595 100%) !important;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(10, 102, 194, 0.15);
}

#linkedin-option .oauth-button:hover {
  box-shadow: 0 6px 24px rgba(10, 102, 194, 0.3);
  transform: translateY(-3px);
}

#linkedin-container {
  width: 100%;
}

#linkedin-container button {
  width: 100%;
}

/* Instagram Button Container */
#instagram-option {
  min-height: auto;
}

#instagram-option .oauth-button {
  width: 100%;
  height: 48px;
  padding: 0 16px !important;
  background: linear-gradient(135deg, #feda75 0%, #fa7e1e 50%, #d92e7f 100%) !important;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(250, 126, 30, 0.15);
}

#instagram-option .oauth-button:hover {
  box-shadow: 0 6px 24px rgba(250, 126, 30, 0.3);
  transform: translateY(-3px);
}

#instagram-container {
  width: 100%;
}

#instagram-container button {
  width: 100%;
}

.social-divider {
  text-align: center;
  margin: 20px 0;
  position: relative;
}

.social-divider::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: #ddd;
}

.social-divider span {
  background: white;
  padding: 0 10px;
  position: relative;
  color: #999;
  font-size: 14px;
}

/* Footer Social Links */
.footer {
  border-top: 1px solid #ddd;
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 15px 0;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f0f0f0;
  color: #333;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #0066cc;
  color: white;
  transform: translateY(-3px);
}

.social-links .facebook {
  color: #1877F2;
}

.social-links .facebook:hover {
  background: #1877F2;
}

.social-links .twitter {
  color: #000000;
}

.social-links .twitter:hover {
  background: #000000;
}

.social-links .instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
}

/* Resource Button Styles */
.btn-download, .btn-link {
  display: inline-block;
  padding: 12px 24px;
  margin-top: 10px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 14px;
}

.btn-download {
  background: #0066cc;
  color: white;
}

.btn-download:hover {
  background: #004499;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
  transform: translateY(-2px);
}

.btn-link {
  background: #f5f5f5;
  color: #0066cc;
  border: 2px solid #0066cc;
}

.btn-link:hover {
  background: #0066cc;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.social-links .instagram:hover {
  opacity: 0.8;
}
