/* ToolzCentre - style.css */
/* Phase 2: CSS & Theming */

/* 1. CSS Variables for Theming */
:root {
    --bg-color: hsl(0, 0%, 100%);
    --text-color: hsl(220, 15%, 25%);
    --primary-color: hsl(225, 85%, 50%);
    --secondary-color: hsl(210, 10%, 95%);
    --accent-color: hsl(25, 95%, 55%);
    --border-color: hsl(210, 10%, 88%);
    --shadow-color: hsla(220, 15%, 25%, 0.1);

    --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.6;
}


/* 2. Base & Responsive Layout */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    margin: 0;
    transition: background-color 0.3s, color 0.3s;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* 3. Component-Specific Styling */

/* Header */
.site-header {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
}



/* Main Content & Sections */
main {
    padding: 2rem 0;
}

.tool-section, .testimonials-section {
    padding: 2rem 0;
}

h2 {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
}

/* Word Counter Tool */
.word-counter-ui {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-color);
}

#text-input {
    width: 100%;
    padding: 1rem;
    font-family: var(--font-family-base);
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-color);
    color: var(--text-color);
    resize: vertical;
    min-height: 150px;
}

#text-input:focus {
    outline: 2px solid var(--primary-color);
    border-color: transparent;
}

.file-upload-wrapper {
    margin: 1rem 0;
    text-align: center;
}

#file-input {
    margin-top: 0.5rem;
}

.count-display {
    margin-top: 1.5rem;
    font-size: 1.25rem;
    text-align: center;
    background-color: var(--bg-color);
    padding: 1rem;
    border-radius: 4px;
    border: 1px dashed var(--accent-color);
}

#word-count-result {
    font-weight: bold;
    color: var(--accent-color);
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.testimonial {
    background-color: var(--secondary-color);
    padding: 1.5rem;
    border-left: 5px solid var(--accent-color);
    border-radius: 4px;
    margin: 0;
}

.testimonial p {
    margin-top: 0;
}

.testimonial footer {
    font-style: italic;
    color: var(--primary-color);
}

/* Featured Testimonial */
.testimonial--featured {
    border-color: var(--primary-color);
    transform: scale(1.02);
    box-shadow: 0 8px 20px var(--shadow-color);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}