/* Category Color Variables */
:root {
    /* Base colors for each category */
    --color-flows: #fed5ce;
    --color-performance: #9ac9e6;
    --color-content: #99e0c9;
    --color-accessibility: #b99cc1;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    color: #6B6967;
}

/* MINIMAL HEADER */
.minimal-header {
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    background: #ffffff;
    border-bottom: solid 1px #efefef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: padding 0.3s ease;
}

/* Sticky only on desktop */
@media (min-width: 769px) {
    .minimal-header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    /* Shrink padding when scrolled */
    .minimal-header.scrolled {
        padding: 0.5rem 0;
    }
}

.minimal-header p {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #767676;
}

.minimal-header a {
    color: #767676;
    text-decoration: none;
    transition: font-weight 0.2s ease;
}

.minimal-header a:hover {
    font-weight: 600;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 40px;
}

/* Header - reset generic header styles */
header {
    margin: 0;
    background-color: #fff7fc;
}

/* Page Header (full width like minimal header) */
.page-header {
    width: 100%;
    text-align: center;
    padding: 40px 20px;
    background-color: #fff7fc;
    margin-bottom: 0;
}

#landing-page-header {
    margin-top: 30px;
}

.page-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

h1 {
  font-family: "Fraunces", serif;
  font-size: 3.6rem;
  font-weight: 300;
  line-height: 1;
  color: #6B6967;
  margin: 1rem 0;

}

.pretitle {
    font-size: 1.3rem;
    color: #D8467D;
    text-transform:uppercase;
}

.title {
    margin-bottom:32px;
}

.tagline {
    font-size: 1.2rem;
    color: #6B6967;
    font-style: italic;
    margin: 1rem 0rem 1.5rem 0rem;
}

.hero h2 {
  color: #D8467D;
  font-style: italic;
  margin-top: 0rem;

}

.pink {
  color: #D8467D;
}

.hero h3 {
  font-family: "Inter", sans-serif;
  font-size: 1.15rem;
  color: #6B6967;
  font-weight: 300;
  margin: 4rem 0;
  line-height: 1.25;
  text-transform: capitalize;
}

/* Encouragement Messages */
.encouragement {
    background: #f0f4ff;
    border-left: 4px solid #667eea;
    padding: 15px 20px;
    margin: 20px 0;
    font-style: italic;
    color: #555;
    border-radius: 8px;
}

/* Intro Section */
.intro {
    text-align: center;
    margin-bottom: 40px;
    font-size: .85rem;
    line-height: 1.8;
    font-family: 'Inter', sans-serif;
}

.intro p {
    margin-bottom: 15px;
}

/* Demo Card Section */
.demo-card-section {
    margin: 40px 0;
}

.demo-card-section h2 {
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: #6B6967;
}

.demo-card {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    border: 2px solid #e2e2e2;
}

.demo-card .card-category {
    display: block;
    text-align: center;
    margin: 0 auto 15px auto;
    width: fit-content;
}

.demo-card .card-time {
    display: block;
    text-align: center;
    margin-bottom: 25px;
}

.demo-card .modal-title {
    font-family: 'Fraunces', serif;
    font-size: 2rem;
    font-weight: 400;
    text-align: center;
    color: #2C2C54;
    line-height: 1.3;
    margin: 15px 0;
}

.demo-category {
    background: var(--color-flows);
}

/* Cards */
.card {
    background: white;
    border: 1px solid #e2e2e2;
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    aspect-ratio: 5 / 7;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    border-color: #b0b0b0;
}

.card.completed {
    opacity: 0.5;
    background: #f5f5f5;
    position: relative;
}

.card.completed::after {
    content: 'COMPLETED';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #999;
    opacity: 0.4;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

/* Random Card Styling */
.random-card {
    background: repeating-linear-gradient(
        45deg,
        #fcd8e5,
        #fcd8e5 10px,
        #f9ccdb 10px,
        #f9ccdb 20px
    );
    border: 2px solid #f9ccdb;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.random-card:hover {
    border-color: #f5b8cb;
    box-shadow: 0 8px 16px rgba(249, 204, 219, 0.4);
}

.random-card .card-front {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 30px 20px;
    width: 100%;
}

.random-card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.random-card h3 {
    color: #6B6967;
    font-size: 1.1rem;
    margin: 0;
}

.card-front {
    position: relative;
}

/* Modal Content Styling */
.modal-header-text {
    text-align: center;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #6B6967;
    margin-bottom: 12px;
    margin-right: 1rem;
    font-family: 'Fraunces', serif;
}

.modal-divider {
    width: 30%;
    height: 1px;
    background: #999;
    margin: 0 auto 20px auto;
}

.modal-title {
    font-family: 'Fraunces', serif;
    font-size: 2rem;
    font-weight: 400;
    text-align: center;
    color: #2C2C54;
    line-height: 1.3;
    margin: 15px 0;
}

#modal-card-content .card-category {
    display: block;
    text-align: center;
    margin: 0 auto 15px auto;
    width: fit-content;
}

#modal-card-content .card-time {
    display: block;
    text-align: center;
    margin-bottom: 25px;
}

.modal-content-box {
    background: rgba(255, 255, 255, 0.6);
    border: 1.5px solid rgba(185, 156, 193, 0.3);
    border-radius: 20px;
    padding: 25px;
    margin: 20px 0;
}

.modal-section h4 {
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: #2C2C54;
    margin-bottom: 12px;
    text-align: center;
}

.modal-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: #6B6967;
    text-align: center;
    font-style: italic;
}

.modal-section ol {
    margin: 0;
    padding-left: 25px;
    font-size: 1rem;
    line-height: 1.8;
    color: #6B6967;
}

.modal-section ol li {
    margin: 10px 0;
}

.modal-section-divider {
    width: 100%;
    height: 1px;
    background: rgba(185, 156, 193, 0.3);
    margin: 25px 0;
}

.modal-encouragement {
    text-align: center;
    font-size: 1.2rem;
    font-style: italic;
    color: #2C2C54;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sparkle {
    font-size: 1.2rem;
    color: #D4AF37;
}

/* Card Checkbox */
.card-checkbox {
    position: absolute;
    top: 0;
    right: 0;
    width: 24px;
    height: 24px;
    cursor: pointer;
    z-index: 10;
    appearance: none;
    -webkit-appearance: none;
    background: #ffffff;
    border: 2px solid #d0d0d0;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.card-checkbox:hover {
    border-color: #b0b0b0;
}

.card-checkbox:checked {
    background: #6B6967;
    border-color: #6B6967;
}

.card-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.card-category {
    display: inline-block;
    color: #343434;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    font-family: Inter;
}

/* Category pill colors - darker versions */
.card[data-category="flows"] .card-category,
#modal-card-content[data-category="flows"] .card-category {
    background: var(--color-flows);
}

.card[data-category="performance"] .card-category,
#modal-card-content[data-category="performance"] .card-category {
    background: var(--color-performance);
}

.card[data-category="content"] .card-category,
#modal-card-content[data-category="content"] .card-category {
    background: var(--color-content);
}

.card[data-category="accessibility"] .card-category,
#modal-card-content[data-category="accessibility"] .card-category,
.card[data-category="usability/accessibility"] .card-category,
#modal-card-content[data-category="usability/accessibility"] .card-category {
    background: var(--color-accessibility);
}

.card h3 {
    font-size: 1.3rem;
    margin: 15px 0;
    color: #333;
}

.card-time {
    color: #767676;
    font-size: 0.9rem;
    padding: .5rem 0rem;
}

/* Old card-back styles - no longer used with new modal design */
/* .card-back {
    display: none;
}

.card-back h4 {
    color: #667eea;
    margin: 20px 0 10px 0;
}

.card-back ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.card-back li {
    margin: 8px 0;
}

.stuck-link {
    background: #fff4e6;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 0.95rem;
}

.stuck-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.stuck-link a:hover {
    text-decoration: underline;
} */

/* Opt-in Section */
.opt-in-section {
    text-align: center;
    background: #f9f9ff;
    padding: 40px;
    border-radius: 15px;
}

.opt-in-section h2 {
    color: #667eea;
    margin-bottom: 15px;
}

#opt-in-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 80px auto 10px;
    flex-wrap: wrap;
    justify-content: center;
}

#opt-in-form input {
    flex: 1;
    min-width: 250px;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

#opt-in-form button {
    padding: 15px 40px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

#opt-in-form button:hover {
    background: #5568d3;
}

.privacy-note {
    font-size: 0.75rem;
    font-family: 'Inter', sans-serif;
    color: #6B6967;
    margin: -5px auto 20px;
}

.continue-btn {
    display: none; /* Hidden by default */
    margin-top: 20px;
    padding: 15px 40px;
    background: #b99cc1;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.continue-btn:hover {
    background: #a88bb0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(185, 156, 193, 0.3);
}

/* Progress Section */
.progress-section {
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    margin-top:60px;
    background-color: #ffffff;
}

.progress-text {
    margin: 0 0 10px 5px;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #8C8C8C;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: #e0e0e0;
    border-radius: 1px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        #fcd8e5,
        #fcd8e5 10px,
        #f9ccdb 10px,
        #f9ccdb 20px
    );
    transition: width 0.5s ease;
    width: 0%;
}

.reset-progress-link {
    display: block;
    margin-top: 15px;
    margin-left: auto;
    padding: 6px 10px;
    background: transparent;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #8C8C8C;
    width: fit-content;
}

.reset-progress-link:hover {
    background: #f5f5f5;
    border-color: #b0b0b0;
    color: #6B6967;
}

/* Categories Section */
.categories-section {
    margin: 40px 0px 80px 0px;
}

.categories-section h2 {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 60px;
    font-family: 'Inter', sans-serif; 
    font-size: 1.05rem;
    font-weight: 400;
}

.category-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.category-btn {
    padding: 20px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: .8rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

/* Show All button - neutral styling */
.category-btn[data-category="all"] {
    background: rgba(224, 224, 224, 0.3);
    border-color: rgba(224, 224, 224, 0.4);
}

.category-btn[data-category="all"]:hover,
.category-btn[data-category="all"].active {
    background: #e0e0e0;
    color: black;
    border-color: #e0e0e0;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(224, 224, 224, 0.4);
}

/* Workflows - Peach */
.category-btn[data-category="flows"] {
    background: rgba(254, 213, 206, 0.3);
    border-color: rgba(254, 213, 206, 0.4);
}

.category-btn[data-category="flows"]:hover,
.category-btn[data-category="flows"].active {
    background: var(--color-flows);
    color: black;
    border-color: var(--color-flows);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(254, 213, 206, 0.4);
}

/* Card pills for workflows */
.card[data-category="workflows"] .card-category,
#modal-card-content[data-category="workflows"] .card-category {
    background: var(--color-flows);
}

/* Performance - Blue */
.category-btn[data-category="performance"] {
    background: rgba(154, 201, 230, 0.3);
    border-color: rgba(154, 201, 230, 0.4);
}

.category-btn[data-category="performance"]:hover,
.category-btn[data-category="performance"].active {
    background: var(--color-performance);
    color: black;
    border-color: var(--color-performance);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(154, 201, 230, 0.4);
}

/* Content - Teal */
.category-btn[data-category="content"] {
    background: rgba(153, 224, 201, 0.3);
    border-color: rgba(153, 224, 201, 0.4);
}

.category-btn[data-category="content"]:hover,
.category-btn[data-category="content"].active {
    background: var(--color-content);
    color: black;
    border-color: var(--color-content);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(153, 224, 201, 0.4);
}

/* Accessibility - Purple */
.category-btn[data-category="accessibility"] {
    background: rgba(185, 156, 193, 0.3);
    border-color: rgba(185, 156, 193, 0.4);
}

.category-btn[data-category="accessibility"]:hover,
.category-btn[data-category="accessibility"].active {
    background: var(--color-accessibility);
    color: black;
    border-color: var(--color-accessibility);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(185, 156, 193, 0.4);
}

.category-count {
    font-size: 0.9rem;
    opacity: 0.7;
    color: #000000;
}

/* Cards Grid */
.cards-section {
    margin-bottom: 40px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

/* Random Card Section */
.random-section {
    display: none; /* Hidden - using random card in grid instead */
}

.random-btn {
    padding: 20px 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.random-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close:hover {
    color: #000;
}

.complete-btn {
    display: block;
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background: #5969a7;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.complete-btn:hover {
    background: #45a049;
}

.complete-btn.completed {
    background: #999;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    color: white;
    font-size: 0.9rem;
}

footer a {
    color: white;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .category-buttons {
        grid-template-columns: 1fr;
    }
    
    #opt-in-form {
        flex-direction: column;
    }
    
    #opt-in-form input,
    #opt-in-form button {
        width: 100%;
    }
}
