:root {
  --theme-primary-color: #2534DE;
  --theme-secondary-color: #6287FF;
  --theme-white: #ffffff;
  --theme-background-color: #F5F6F7;
  --theme-background-light: #f8f9fa;
  --theme-background-medium: #E8F5E8;
  --theme-text-color: #383C40;
  --theme-text-dark: #1a1a2a;
  --theme-text-medium: #6B7280;
  --theme-text-light: #9CA3AF;
  --theme-font-family: Poppins, sans-serif;
  --theme-heading-font-family: Nunito, sans-serif;
}

/* Component CSS: summarizer */
/* Summarizer Component Styles - Light Modern Theme */

.summarizer {
    min-height: 100vh;
    padding: 3rem 1.5rem;
}

.summarizer-container {
    max-width: 720px;
    margin: 0 auto;
}

.summarizer-title {
    text-align: center;
    margin-bottom: 0.75rem;
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.03em;
}

.summarizer-subtitle {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--text-medium);
    font-size: 1.125rem;
}

.summarizer-card {
    background: var(--white-color, #ffffff);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color, #E4E7EB);
    box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.1));
}

.summarizer label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--text-dark);
}

.summarizer label.checkbox-label {
    display: inline;
    margin-bottom: 0;
    font-weight: 400;
    color: var(--text-medium);
}

.summarizer input[type="text"],
.summarizer textarea,
.summarizer select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color, #E4E7EB);
    border-radius: 10px;
    background: var(--background-color, #F5F6F7);
    color: var(--text-color, #383C40);
    font-size: 1rem;
    margin-bottom: 1.25rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.summarizer input[type="text"]::placeholder,
.summarizer textarea::placeholder {
    color: var(--text-light, #9CA3AF);
}

.summarizer input[type="text"]:focus,
.summarizer textarea:focus,
.summarizer select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 52, 222, 0.1);
    background: var(--white-color, #ffffff);
}

.summarizer textarea {
    min-height: 100px;
    resize: vertical;
}

.summarizer .row {
    display: flex;
    gap: 1rem;
}

.summarizer .row > div {
    flex: 1;
}

.summarizer .checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1.5rem;
}

.summarizer input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.summarizer button:not(.example-btn) {
    background: var(--primary-color, #2534DE);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.summarizer button:not(.example-btn):hover {
    background: var(--primary-color-dark, var(--primary-color));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--primary-color-shadow, rgba(0, 0, 0, 0.2));
}

.summarizer button:not(.example-btn):disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#status {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-medium);
    display: none;
}

#status.loading {
    display: block;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color, #E4E7EB);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 0.8s linear infinite;
    margin-right: 0.625rem;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#results {
    display: none;
}

#results.show {
    display: block;
}

.summarizer .article {
    background: var(--background-color, #F5F6F7);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color, #E4E7EB);
}

.summarizer .article h3 {
    color: var(--text-dark);
    margin-bottom: 0.625rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.summarizer .article p {
    line-height: 1.7;
    color: var(--text-medium);
    font-size: 0.9375rem;
}

.summarizer .article .meta {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color, #E4E7EB);
}

.summarizer .article .meta a {
    color: var(--primary-color);
}

.summarizer .article .meta a:hover {
    text-decoration: underline;
}

.summarizer .articles-title {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 600;
}

.summarizer .analysis-box {
    background: var(--white-color, #ffffff);
    border: 1px solid var(--border-color, #E4E7EB);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
}

.summarizer .analysis-content {
    line-height: 1.9;
    font-size: 1rem;
    color: var(--text-color);
}

.summarizer .analysis-heading {
    color: var(--primary-color);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
}

.summarizer .analysis-heading:first-child {
    margin-top: 0;
}

.summarizer .source-ref {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    background: rgba(37, 52, 222, 0.1);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
}

.summarizer .source-ref:hover {
    background: rgba(37, 52, 222, 0.2);
}

.summarizer .sources-title {
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.summarizer .sources-list {
    background: var(--background-color, #F5F6F7);
    border-radius: 8px;
    padding: 1rem;
}

.summarizer .source-item {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color, #E4E7EB);
}

.summarizer .source-item:last-child {
    border-bottom: none;
}

.summarizer .source-item.single {
    background: var(--background-color, #F5F6F7);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border-bottom: none;
}

.summarizer .source-item a {
    color: var(--primary-color);
}

.summarizer .source-item a:hover {
    text-decoration: underline;
}

.summarizer .source-num {
    color: var(--primary-color);
    font-weight: 600;
}

.summarizer .source-meta {
    color: var(--text-light);
    font-size: 0.8rem;
}

.summarizer .source-error {
    color: var(--error-color, #b91c1c);
    font-size: 0.8rem;
}

.summarizer .examples {
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
}

.summarizer .examples h4 {
    color: var(--text-medium);
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.summarizer .example-btn {
    background: var(--white-color, #ffffff);
    border: 1px solid var(--border-color, #E4E7EB);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: var(--text-color);
    cursor: pointer;
    font-size: 0.875rem;
    margin: 0.25rem;
    transition: all 0.2s;
}

.summarizer .example-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--primary-color-light, rgba(0, 0, 0, 0.05));
}

.summarizer .error {
    color: var(--error-color, #b91c1c);
    background: var(--error-bg, #fef2f2);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--error-border, #fecaca);
}

/* Responsive Summarizer */
@media screen and (max-width: 768px) {
    .summarizer {
        padding: 2rem 1rem;
    }

    .summarizer-title {
        font-size: 2rem;
    }

    .summarizer-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .summarizer-card {
        padding: 1.5rem;
    }

    .summarizer .row {
        flex-direction: column;
        gap: 0;
    }

    .summarizer button:not(.example-btn) {
        padding: 0.875rem 1.5rem;
    }

    .summarizer .example-btn {
        font-size: 0.8125rem;
        padding: 0.4375rem 0.875rem;
    }
}


/* Component CSS: footer3 */
.footer3 {
    background-color: #fff;
    padding: 2rem 0;
    border-top: 1px solid #eee;
}

.footer3-container {
    text-align: center;
}

.footer3-logo {
    margin-bottom: 1rem;
}

.footer3-logo a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    font-size: 1.5rem;
}

.footer3-nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer3-nav-link {
    text-decoration: none;
    color: #6c757d;
}

.footer3-nav-link:hover {
    color: var(--primary-color);
}

.footer3-copy {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Site Custom CSS */
/* Google Fonts Import - Inter for modern look */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Custom Properties - Light Modern Theme */
:root {
  /* Theme Colors */
  --white-color: #ffffff;
  --primary-color: var(--theme-primary-color, #2534DE);
  --secondary-color: var(--theme-secondary-color, #6287FF);
  --background-color: var(--theme-background-color, #F5F6F7);
  --section-bg-color: #ffffff;
  --card-bg-color: #ffffff;
  --custom-btn-bg-color: var(--theme-primary-color, #2534DE);
  --custom-btn-bg-hover-color: #1a2496;
  --border-color: #E4E7EB;

  /* Text colors */
  --text-color: var(--theme-text-color, #383C40);
  --text-dark: var(--theme-text-dark, #1a1a2a);
  --text-medium: var(--theme-text-medium, #6B7280);
  --text-light: var(--theme-text-light, #9CA3AF);

  /* Typography */
  --body-font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-family: var(--body-font-family);
  --heading-font-family: var(--body-font-family);

  /* Font Sizes */
  --h1-font-size: 48px;
  --h2-font-size: 32px;
  --h3-font-size: 24px;
  --h4-font-size: 20px;
  --h5-font-size: 18px;
  --h6-font-size: 16px;
  --p-font-size: 16px;
  --btn-font-size: 15px;

  /* Border Radius - Modern rounded corners */
  --border-radius-large: 16px;
  --border-radius-medium: 12px;
  --border-radius-small: 8px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Light theme body */
body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--body-font-family);
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-family: var(--heading-font-family);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

h1 {
  font-size: var(--h1-font-size);
  font-weight: var(--font-weight-bold);
}

h2 {
  font-size: var(--h2-font-size);
}

h3 {
  font-size: var(--h3-font-size);
}

h4 {
  font-size: var(--h4-font-size);
}

h5 {
  font-size: var(--h5-font-size);
}

h6 {
  font-size: var(--h6-font-size);
}

p {
  color: var(--text-medium);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-normal);
  line-height: 1.7;
}

a,
button {
  touch-action: manipulation;
  transition: all 0.2s ease;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  color: var(--custom-btn-bg-hover-color);
}

/* Container */
.container {
  max-width: 100%;
  padding: 0;
}

/* Footer styling for light theme */
footer,
.footer3 {
  background-color: var(--white-color) !important;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.footer3 p,
.footer3 a,
footer p,
footer a {
  color: var(--text-medium) !important;
}

.footer3 a:hover,
footer a:hover {
  color: var(--primary-color) !important;
}

.footer3-logo a {
  color: var(--text-dark) !important;
}

/* Select dropdown arrow */
.summarizer select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background-color);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Responsive Typography */
@media screen and (max-width: 991px) {
  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 22px;
  }

  h4 {
    font-size: 18px;
  }
}
