/*
Theme Name: GeneratePress Child
Theme URI: https://generatepress.com
Description: Child theme for GeneratePress
Author: Your Name
Author URI: https://yourwebsite.com
Template: generatepress
Version: 1.0
*/

/* ========================
   Rating Section
   ======================== */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-rating-wrapper {
    display: flex;
    align-items: center;
    gap: 25px;
}

.logo-container {
    flex-shrink: 0;
}

.site-logo, .mobile-logo {
    height: 60px;
    width: auto;
}

.rating-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stars {
    --percent: calc(var(--rating) / 5 * 100%);
    display: inline-block;
    font-size: 1.2em;
    line-height: 1;
}

.stars::before {
    content: '★★★★★';
    letter-spacing: 2px;
    background: linear-gradient(90deg, #FFD700 var(--percent), #aaa var(--percent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rating-value {
    font-size: 0.8em;
    font-weight: bold;
    color: #333;
    margin-top: 3px;
}

/* ========================
   Color Shades Section
   ======================== */
.color-palette {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.color-swatch {
    height: 100px;
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    font-size: 12px;
    text-align: center;
}

/* Primary Color Shades */
.color-primary-100 { background-color: #f0f7ff; }
.color-primary-200 { background-color: #d0e4ff; }
.color-primary-300 { background-color: #a0c8ff; }
.color-primary-400 { background-color: #70abff; }
.color-primary-500 { background-color: #408fff; }
.color-primary-600 { background-color: #1072ff; }
.color-primary-700 { background-color: #0058d9; }
.color-primary-800 { background-color: #0041b3; }
.color-primary-900 { background-color: #002b8c; }

/* Neutral Color Shades */
.color-neutral-100 { background-color: #f8f9fa; }
.color-neutral-200 { background-color: #e9ecef; }
.color-neutral-300 { background-color: #dee2e6; }
.color-neutral-400 { background-color: #ced4da; }
.color-neutral-500 { background-color: #adb5bd; }
.color-neutral-600 { background-color: #6c757d; }
.color-neutral-700 { background-color: #495057; }
.color-neutral-800 { background-color: #343a40; }
.color-neutral-900 { background-color: #212529; }

/* Success Color Shades */
.color-success-100 { background-color: #d4edda; }
.color-success-200 { background-color: #c3e6cb; }
.color-success-300 { background-color: #a9d9b9; }
.color-success-400 { background-color: #8fcea8; }
.color-success-500 { background-color: #75c398; }
.color-success-600 { background-color: #5ab887; }
.color-success-700 { background-color: #40ad77; }
.color-success-800 { background-color: #259d67; }
.color-success-900 { background-color: #0a8d57; }

/* Warning Color Shades */
.color-warning-100 { background-color: #fff3cd; }
.color-warning-200 { background-color: #ffeeba; }
.color-warning-300 { background-color: #ffe8a8; }
.color-warning-400 { background-color: #ffdf96; }
.color-warning-500 { background-color: #ffd583; }
.color-warning-600 { background-color: #ffca70; }
.color-warning-700 { background-color: #ffbf5e; }
.color-warning-800 { background-color: #ffb44b; }
.color-warning-900 { background-color: #ffa938; }

/* Danger Color Shades */
.color-danger-100 { background-color: #f8d7da; }
.color-danger-200 { background-color: #f5c2c7; }
.color-danger-300 { background-color: #f1aeb5; }
.color-danger-400 { background-color: #ee9aa3; }
.color-danger-500 { background-color: #ea868f; }
.color-danger-600 { background-color: #e7727b; }
.color-danger-700 { background-color: #e35e68; }
.color-danger-800 { background-color: #df4a55; }
.color-danger-900 { background-color: #db3642; }

/* ========================
   Camera Section
   ======================== */
.camera-section {
    padding: 80px 0;
    background-color: #f9fafb;
}

.camera-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.camera-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.camera-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.camera-card h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 24px;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.camera-spec {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #eaecef;
}

.spec-name {
    font-weight: 600;
    color: #4a5568;
}

.spec-value {
    color: #2d3748;
    text-align: right;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .camera-container {
        grid-template-columns: 1fr;
    }
    
    .rating-container {
        display: none;
    }
}

@media (min-width: 1025px) {
  .is-left-sidebar,
  .is-right-sidebar {
    width: 20%;
  }

  .site-content .content-area {
    width: 60%;
  }

  /* Optional: Adjust internal spacing if needed */
  .site-main > .inside-article,
  .site-main > .inside-left-sidebar,
  .site-main > .inside-right-sidebar {
    padding-left: 10px;
    padding-right: 10px;
  }
}
