/* ========================================
   Chromebook Guide Component CSS
   HCCC IT Department - Loaner Device Resources
   Version 1.0.0
   ======================================== */

/* ========================================
   CSS Custom Properties (Root Variables)
   ======================================== */

:root {
    /* HCCC Brand Colors */
    --chromebook-primary: #00857a;
    --chromebook-secondary: #2b3990;
    --chromebook-accent: #fff200;
    --chromebook-dark-blue: #1d2974;
    --chromebook-black: #1a1a1a;
    --chromebook-gold: #d4af37;

    /* Component Colors */
    --chromebook-bg: #ffffff;
    --chromebook-color: #333333;
    --chromebook-border-color: #e1e1e1;
    --chromebook-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --chromebook-shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.15);

    /* Featured Item Colors */
    --chromebook-featured-bg: #00857a;
    --chromebook-featured-color: #ffffff;
    --chromebook-featured-hover-bg: #006b5e;
    --chromebook-featured-badge-bg: #fff200;
    --chromebook-featured-badge-color: #1a1a1a;
    --chromebook-featured-accent: #fff200;

    /* Standard Item Colors */
    --chromebook-item-bg: #ffffff;
    --chromebook-item-color: #333333;
    --chromebook-item-hover-bg: #f8f9fa;
    --chromebook-item-icon-color: #00857a;
    --chromebook-item-action-color: #c0392b;

    /* Category Colors */
    --chromebook-category-color: #00857a;
    --chromebook-category-border: #e1e1e1;

    /* Typography */
    --chromebook-font-family: "Montserrat", Arial, Helvetica, sans-serif;
    --chromebook-font-size: 16px;
    --chromebook-line-height: 1.5;
    --chromebook-heading-weight: 800;
    --chromebook-title-weight: 700;
    --chromebook-text-weight: 400;

    /* Layout & Spacing */
    --chromebook-padding: 20px;
    --chromebook-gap: 20px;
    --chromebook-border-radius: 8px;
    --chromebook-margin: 2rem 0;

    /* Animation */
    --chromebook-transition: all 0.3s ease;

    /* Accessibility */
    --chromebook-focus-color: #0066cc;
    --chromebook-focus-width: 3px;
}

/* ========================================
   Theme Variations
   ======================================== */

/* HCCC Primary Theme (Teal) - Default */
.chromebook-guide--hccc-primary {
    --chromebook-featured-bg: #00857a;
    --chromebook-featured-color: #ffffff;
    --chromebook-featured-hover-bg: #006b5e;
    --chromebook-featured-badge-bg: #fff200;
    --chromebook-featured-badge-color: #1a1a1a;
    --chromebook-featured-accent: #fff200;
    --chromebook-item-icon-color: #00857a;
    --chromebook-category-color: #00857a;
}

/* HCCC Secondary Theme (Blue) */
.chromebook-guide--hccc-secondary {
    --chromebook-featured-bg: #2b3990;
    --chromebook-featured-color: #ffffff;
    --chromebook-featured-hover-bg: #1d2974;
    --chromebook-featured-badge-bg: #fff200;
    --chromebook-featured-badge-color: #1a1a1a;
    --chromebook-featured-accent: #fff200;
    --chromebook-item-icon-color: #2b3990;
    --chromebook-category-color: #2b3990;
}

/* Anniversary Theme (Black & Gold) */
.chromebook-guide--anniversary {
    --chromebook-featured-bg: #1a1a1a;
    --chromebook-featured-color: #d4af37;
    --chromebook-featured-hover-bg: #333333;
    --chromebook-featured-badge-bg: #d4af37;
    --chromebook-featured-badge-color: #1a1a1a;
    --chromebook-featured-accent: #d4af37;
    --chromebook-item-icon-color: #d4af37;
    --chromebook-category-color: #1a1a1a;
    --chromebook-border-color: #d4af37;
}

/* Anniversary Gold Theme */
.chromebook-guide--anniversary-gold {
    --chromebook-featured-bg: #d4af37;
    --chromebook-featured-color: #1a1a1a;
    --chromebook-featured-hover-bg: #c9a227;
    --chromebook-featured-badge-bg: #1a1a1a;
    --chromebook-featured-badge-color: #d4af37;
    --chromebook-featured-accent: #1a1a1a;
    --chromebook-item-icon-color: #1a1a1a;
    --chromebook-category-color: #d4af37;
}

/* IT/Tech Theme (Professional Blue) */
.chromebook-guide--tech {
    --chromebook-featured-bg: #2c3e50;
    --chromebook-featured-color: #ecf0f1;
    --chromebook-featured-hover-bg: #34495e;
    --chromebook-featured-badge-bg: #3498db;
    --chromebook-featured-badge-color: #ffffff;
    --chromebook-featured-accent: #3498db;
    --chromebook-item-icon-color: #3498db;
    --chromebook-category-color: #2c3e50;
}

/* ========================================
   Component Base Styles
   ======================================== */

.chromebook-guide {
    font-family: var(--chromebook-font-family);
    font-size: var(--chromebook-font-size);
    line-height: var(--chromebook-line-height);
    margin: var(--chromebook-margin);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Header Section
   ======================================== */

.chromebook-guide__header {
    text-align: center;
    margin-bottom: 2rem;
}

.chromebook-guide__title {
    font-size: 28px;
    font-weight: var(--chromebook-heading-weight);
    line-height: 1.2;
    margin: 0 0 10px 0;
    color: var(--chromebook-color);
}

.chromebook-guide__intro {
    font-size: 18px;
    font-weight: var(--chromebook-text-weight);
    color: var(--chromebook-color);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Featured Item (Start Here)
   ======================================== */

.chromebook-guide__featured {
    margin-bottom: 2.5rem;
}

.chromebook-guide__item--featured {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 30px;
    background: var(--chromebook-featured-bg);
    color: var(--chromebook-featured-color);
    border-radius: var(--chromebook-border-radius);
    text-decoration: none;
    transition: var(--chromebook-transition);
    box-shadow: var(--chromebook-shadow);
    position: relative;
    overflow: hidden;
}

.chromebook-guide__item--featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--chromebook-featured-accent);
}

.chromebook-guide__item--featured:hover,
.chromebook-guide__item--featured:focus {
    background: var(--chromebook-featured-hover-bg);
    transform: translateY(-3px);
    box-shadow: var(--chromebook-shadow-hover);
    text-decoration: none;
    color: var(--chromebook-featured-color);
}

.chromebook-guide__item--featured .chromebook-guide__item-icon {
    font-size: 40px;
    flex-shrink: 0;
    width: 60px;
    text-align: center;
}

.chromebook-guide__item--featured .chromebook-guide__item-content {
    flex: 1;
}

.chromebook-guide__item-badge {
    display: inline-block;
    background: var(--chromebook-featured-badge-bg);
    color: var(--chromebook-featured-badge-color);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.chromebook-guide__item--featured .chromebook-guide__item-title {
    font-size: 22px;
    font-weight: var(--chromebook-title-weight);
    margin: 0 0 8px 0;
    color: inherit;
}

.chromebook-guide__item--featured .chromebook-guide__item-description {
    font-size: 15px;
    margin: 0;
    opacity: 0.9;
    line-height: 1.4;
}

.chromebook-guide__item--featured .chromebook-guide__item-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 28px;
    opacity: 0.8;
    transition: var(--chromebook-transition);
    flex-shrink: 0;
}

.chromebook-guide__item--featured .chromebook-guide__item-action span {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chromebook-guide__item--featured:hover .chromebook-guide__item-action {
    opacity: 1;
    transform: scale(1.1);
}

/* ========================================
   Category Section
   ======================================== */

.chromebook-guide__category {
    margin-bottom: 2rem;
}

.chromebook-guide__category:last-child {
    margin-bottom: 0;
}

.chromebook-guide__category-title {
    font-size: 20px;
    font-weight: var(--chromebook-title-weight);
    color: var(--chromebook-category-color);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--chromebook-category-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.chromebook-guide__category-title i {
    font-size: 18px;
}

/* ========================================
   Grid Layout
   ======================================== */

.chromebook-guide__grid {
    display: grid;
    gap: var(--chromebook-gap);
}

.chromebook-guide__grid--grid-1 {
    grid-template-columns: 1fr;
}

.chromebook-guide__grid--grid-2 {
    grid-template-columns: 1fr;
}

.chromebook-guide__grid--grid-3 {
    grid-template-columns: 1fr;
}

/* ========================================
   Standard Guide Items
   ======================================== */

.chromebook-guide__item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: var(--chromebook-padding);
    background: var(--chromebook-item-bg);
    color: var(--chromebook-item-color);
    border: 1px solid var(--chromebook-border-color);
    border-radius: var(--chromebook-border-radius);
    text-decoration: none;
    transition: var(--chromebook-transition);
    position: relative;
}

.chromebook-guide__item:not(.chromebook-guide__item--featured):hover,
.chromebook-guide__item:not(.chromebook-guide__item--featured):focus {
    background: var(--chromebook-item-hover-bg);
    transform: translateX(5px);
    box-shadow: var(--chromebook-shadow);
    border-color: var(--chromebook-item-icon-color);
    text-decoration: none;
    color: var(--chromebook-item-color);
}

.chromebook-guide__item:not(.chromebook-guide__item--featured) .chromebook-guide__item-icon {
    font-size: 28px;
    color: var(--chromebook-item-icon-color);
    flex-shrink: 0;
    width: 40px;
    text-align: center;
    transition: var(--chromebook-transition);
}

.chromebook-guide__item:not(.chromebook-guide__item--featured):hover .chromebook-guide__item-icon {
    transform: scale(1.1);
}

.chromebook-guide__item:not(.chromebook-guide__item--featured) .chromebook-guide__item-content {
    flex: 1;
    min-width: 0;
}

.chromebook-guide__item:not(.chromebook-guide__item--featured) .chromebook-guide__item-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--chromebook-item-color);
}

.chromebook-guide__item:not(.chromebook-guide__item--featured) .chromebook-guide__item-description {
    font-size: 14px;
    margin: 5px 0 0 0;
    color: var(--chromebook-item-color);
    opacity: 0.7;
    line-height: 1.3;
}

.chromebook-guide__item:not(.chromebook-guide__item--featured) .chromebook-guide__item-action {
    font-size: 18px;
    color: var(--chromebook-item-action-color);
    opacity: 0.5;
    transition: var(--chromebook-transition);
    flex-shrink: 0;
}

.chromebook-guide__item:not(.chromebook-guide__item--featured):hover .chromebook-guide__item-action {
    opacity: 1;
}

/* ========================================
   Shape Variations
   ======================================== */

.chromebook-guide--rounded .chromebook-guide__item,
.chromebook-guide--rounded .chromebook-guide__item--featured {
    border-radius: 8px;
}

.chromebook-guide--square .chromebook-guide__item,
.chromebook-guide--square .chromebook-guide__item--featured {
    border-radius: 0;
}

.chromebook-guide--soft .chromebook-guide__item,
.chromebook-guide--soft .chromebook-guide__item--featured {
    border-radius: 4px;
}

.chromebook-guide--pill .chromebook-guide__item:not(.chromebook-guide__item--featured) {
    border-radius: 50px;
}

.chromebook-guide--pill .chromebook-guide__item--featured {
    border-radius: 20px;
}

/* ========================================
   Responsive Design (Mobile-First)
   ======================================== */

/* Tablet breakpoint (768px and up) */
@media (min-width: 768px) {
    .chromebook-guide__title {
        font-size: 35px;
    }

    .chromebook-guide__intro {
        font-size: 20px;
    }

    .chromebook-guide__grid--grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .chromebook-guide__grid--grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .chromebook-guide__category-title {
        font-size: 22px;
    }

    .chromebook-guide__item--featured .chromebook-guide__item-title {
        font-size: 24px;
    }
}

/* Desktop breakpoint (1024px and up) */
@media (min-width: 1024px) {
    .chromebook-guide__title {
        font-size: 40px;
    }

    .chromebook-guide__grid--grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .chromebook-guide__item--featured {
        padding: 30px 40px;
    }

    .chromebook-guide__item--featured .chromebook-guide__item-title {
        font-size: 26px;
    }

    .chromebook-guide__item--featured .chromebook-guide__item-icon {
        font-size: 48px;
        width: 70px;
    }

    .chromebook-guide__category-title {
        font-size: 24px;
    }
}

/* Small mobile (480px and below) */
@media (max-width: 480px) {
    .chromebook-guide__item--featured {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }

    .chromebook-guide__item--featured::before {
        width: 100%;
        height: 6px;
        bottom: auto;
        top: 0;
    }

    .chromebook-guide__item--featured .chromebook-guide__item-icon {
        font-size: 36px;
    }

    .chromebook-guide__item--featured .chromebook-guide__item-action {
        flex-direction: row;
        gap: 8px;
    }

    .chromebook-guide__item:not(.chromebook-guide__item--featured) {
        padding: 15px;
    }

    .chromebook-guide__item:not(.chromebook-guide__item--featured) .chromebook-guide__item-icon {
        font-size: 24px;
        width: 32px;
    }

    .chromebook-guide__item:not(.chromebook-guide__item--featured) .chromebook-guide__item-title {
        font-size: 15px;
    }

    .chromebook-guide__item:not(.chromebook-guide__item--featured) .chromebook-guide__item-description {
        font-size: 13px;
    }
}

/* ========================================
   Accessibility Features
   ======================================== */

/* Focus indicators */
.chromebook-guide__item:focus {
    outline: var(--chromebook-focus-width) solid var(--chromebook-focus-color);
    outline-offset: 2px;
}

.chromebook-guide__item--featured:focus {
    outline: var(--chromebook-focus-width) solid var(--chromebook-focus-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .chromebook-guide__item {
        border-width: 2px;
        border-color: currentColor;
    }

    .chromebook-guide__item--featured {
        border: 2px solid currentColor;
    }

    .chromebook-guide__item-badge {
        border: 1px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .chromebook-guide__item,
    .chromebook-guide__item--featured,
    .chromebook-guide__item-icon,
    .chromebook-guide__item-action {
        transition: none;
    }

    .chromebook-guide__item:hover,
    .chromebook-guide__item--featured:hover {
        transform: none;
    }
}

/* Screen reader only content */
.chromebook-guide .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .chromebook-guide {
        break-inside: avoid;
    }

    .chromebook-guide__item,
    .chromebook-guide__item--featured {
        box-shadow: none;
        border: 1px solid #000;
        page-break-inside: avoid;
    }

    .chromebook-guide__item--featured {
        background: #f0f0f0 !important;
        color: #000 !important;
    }

    .chromebook-guide__item-action::after {
        content: " (PDF)";
    }

    .chromebook-guide__item--featured::before {
        background: #000;
    }
}
