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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Hero Button */
.hero-button-container {
    text-align: center;
    margin-top: 30px;
}

.hero-tool-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #000 0%, #333 100%);
    color: #fff;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid #ffc107;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-tool-button:hover {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #000;
    border-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 193, 7, 0.3);
    text-decoration: none;
}

.hero-tool-button:active {
    transform: translateY(0);
}

.hero-tool-button .button-icon {
    font-size: 18px;
}

.hero-tool-button .button-text {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Development Alert Box */
.dev-alert {
    background: linear-gradient(135deg, #000 0%, #333 100%);
    border: 2px solid #ffc107;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: pulse-alert 2s ease-in-out infinite;
}

.dev-alert-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    color: #fff;
}

.dev-alert-text {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.dev-icon {
    font-size: 16px;
    animation: rotate 2s linear infinite;
}

.dev-message {
    font-weight: 600;
    font-size: 14px;
}

.dev-timestamp {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 500;
}

.dev-refresh-btn {
    background: #ffc107;
    border: 1px solid #ffc107;
    color: #000;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dev-refresh-btn:hover {
    background: #fff;
    border-color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

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

.refresh-icon {
    font-size: 14px;
    animation: spin 1s linear infinite;
}

.refresh-text {
    font-weight: 600;
}

@keyframes pulse-alert {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
    }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header Styles */
.header {
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 0;
}

.branding {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.brand-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-image {
    height: 60px;
    width: auto;
    max-width: 300px;
}

.brand-small {
    font-size: 16px;
    font-style: italic;
    color: #666;
    margin-bottom: -5px;
}

.brand-large {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #000;
    line-height: 0.9;
}

.brand-right .brand-large {
    font-size: 28px;
}

/* Main Content */
.main {
    padding: 40px 0;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 60px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 500;
    color: #666;
    margin-bottom: 10px;
}

.hero-description {
    font-size: 18px;
    color: #888;
    font-weight: 300;
}

/* Section Titles */
.section-title {
    font-size: 32px;
    font-weight: 600;
    color: #000;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #000;
    margin: 15px auto 0;
}

/* MAGIC Acronym */
.magic-acronym {
    margin-bottom: 60px;
}

.acronym-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.acronym-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #000;
}

.acronym-letter {
    font-size: 48px;
    font-weight: 700;
    color: #000;
    min-width: 60px;
    text-align: center;
}

.acronym-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
}

.acronym-content p {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}

/* Flow Section */
.flow-section {
    margin-bottom: 60px;
}

.flow-timeline {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 40px;
}

.flow-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background-color: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.flow-step:hover {
    border-color: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.flow-time {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    background-color: #f0f0f0;
    padding: 8px 16px;
    border-radius: 20px;
    min-width: 80px;
    text-align: center;
    flex-shrink: 0;
}

.flow-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
}

.flow-content p {
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
}

.checklist {
    list-style: none;
    padding-left: 0;
}

.checklist li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 15px;
    color: #555;
}

.checklist li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #000;
    font-weight: bold;
}

/* Red Flags */
.red-flags {
    margin-bottom: 60px;
}

.flags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.flag-item {
    padding: 20px;
    background-color: #fff5f5;
    border-left: 4px solid #e53e3e;
    border-radius: 8px;
    font-size: 16px;
    color: #555;
    font-weight: 500;
}

/* Quick Score */
.quick-score {
    margin-bottom: 60px;
}

.score-content {
    text-align: center;
    margin-top: 40px;
}

.score-content p {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
}

.score-ranges {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.score-range {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.score-number {
    font-size: 32px;
    font-weight: 700;
    color: #000;
}

.score-text {
    font-size: 16px;
    color: #555;
    text-align: center;
    max-width: 150px;
}

/* Tool Kit */
.tool-kit {
    margin-bottom: 60px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.tool-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
}

.tool-item:hover {
    border-color: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tool-number {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    background-color: #000;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tool-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
}

.tool-content p {
    font-size: 15px;
    color: #555;
    margin-bottom: 10px;
}

.tool-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.tool-link:hover {
    text-decoration: underline;
}

/* Extras */
.extras {
    margin-bottom: 60px;
}

.extras-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
}

.extra-link {
    padding: 12px 20px;
    background-color: #f0f0f0;
    color: #0066cc;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.extra-link:hover {
    background-color: #000;
    color: #fff;
}

/* Search Operators */
.search-operators {
    margin-bottom: 60px;
}

.operators-content {
    margin-top: 40px;
}

.operators-table,
.demo-table {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
}

.table-header {
    display: grid;
    grid-template-columns: 1fr 2fr;
    background-color: #000;
    color: #fff;
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    border-bottom: 1px solid #e5e5e5;
}

.table-row:last-child {
    border-bottom: none;
}

.table-cell {
    padding: 15px 20px;
    font-size: 15px;
}

.table-header .table-cell {
    font-weight: 600;
    font-size: 16px;
}

.table-row:nth-child(even) {
    background-color: #f8f9fa;
}

code {
    background-color: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    color: #000;
}

.demo-queries h3 {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin-bottom: 20px;
    text-align: center;
}

/* MAGIC Tool Section */
.magic-tool-section {
    margin-bottom: 60px;
}

.tool-intro {
    text-align: center;
    margin-top: 40px;
}

.tool-intro p {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tool-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #000;
    color: #fff;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tool-button:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.button-icon {
    font-size: 20px;
}

.button-text {
    font-size: 18px;
}

/* MAGIC Pledge */
.magic-pledge {
    margin-bottom: 60px;
}

.pledge-container {
    background-color: #000;
    color: #fff;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.pledge-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    text-decoration: underline;
}

.pledge-line {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 15px;
}

.pledge-line:last-child {
    margin-bottom: 0;
}

/* Presenter Info */
.presenter-info {
    text-align: center;
    margin-bottom: 40px;
}

.presenter-text {
    font-size: 18px;
    color: #555;
}

/* Footer */
.footer {
    background-color: #f8f9fa;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #e5e5e5;
}

.footer p {
    color: #666;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .branding {
        flex-direction: column;
        text-align: center;
    }

    .brand-left {
        align-items: center;
    }

    .logo-image {
        height: 50px;
        max-width: 250px;
    }

    /* Development Alert on Mobile */
    .dev-alert-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 8px 12px;
    }

    .dev-alert-text {
        flex-direction: column;
        gap: 6px;
    }

    .dev-message {
        font-size: 13px;
    }

    .dev-timestamp {
        font-size: 11px;
    }

    .dev-refresh-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .brand-large {
        font-size: 24px;
    }

    /* Hero button on mobile */
    .hero-button-container {
        margin-top: 20px;
    }

    .hero-tool-button {
        padding: 12px 24px;
        font-size: 15px;
    }

    .hero-tool-button .button-icon {
        font-size: 16px;
    }

    .brand-right     .tool-button {
        padding: 14px 28px;
        font-size: 16px;
    }

    .button-text {
        font-size: 16px;
    }

    .logo-image {
        height: 40px;
        max-width: 200px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-description {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .acronym-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .acronym-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .acronym-letter {
        font-size: 36px;
        min-width: auto;
    }

    .flow-step {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .flow-time {
        min-width: auto;
        align-self: center;
    }

    .flags-grid {
        grid-template-columns: 1fr;
    }

    .score-ranges {
        flex-direction: column;
        gap: 20px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .tool-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .extras-list {
        flex-direction: column;
        align-items: center;
    }

    .table-header,
    .table-row {
        grid-template-columns: 1fr;
    }

    .table-cell {
        padding: 10px 15px;
    }

    .table-header .table-cell {
        border-bottom: 1px solid #333;
    }

    .pledge-container {
        padding: 30px 20px;
    }

    .pledge-title {
        font-size: 24px;
    }

    .pledge-line {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 24px;
    }

    .acronym-letter {
        font-size: 32px;
    }

    .flow-time {
        font-size: 16px;
        padding: 6px 12px;
    }

    .score-number {
        font-size: 28px;
    }

    .tool-number {
        font-size: 20px;
        width: 35px;
        height: 35px;
    }

    .pledge-title {
        font-size: 22px;
    }

    .pledge-line {
        font-size: 16px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer {
        display: none;
    }

    .main {
        padding: 0;
    }

    .section-title {
        page-break-after: avoid;
    }

    .acronym-item,
    .flow-step,
    .tool-item {
        page-break-inside: avoid;
    }

    .pledge-container {
        border: 2px solid #000;
    }
}
