:root {
    --primary-color: #4a6baf;
    --secondary-color: #6e8ecc;
    --accent-color: #ff7b54;
    --background-color: #f7f9fc;
    --card-color: #ffffff;
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #e0e6f0;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 100%;
    min-height: 100vh;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
}

header h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

header p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.tabs {
    display: flex;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.tab-btn {
    flex: 1;
    padding: 0.8rem;
    background-color: var(--card-color);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 500;
    color: var(--text-light);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
    flex-direction: column;
    flex-grow: 1;
}

.tab-content.active {
    display: flex;
}

.input-section {
    background-color: var(--card-color);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.input-section h2 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.input-section p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.url-input {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.url-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.analyze-btn {
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.analyze-btn:hover {
    background-color: var(--secondary-color);
}

.results-section {
    background-color: var(--card-color);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    animation: rotate 2s linear infinite;
    margin-bottom: 1rem;
}

.spinner .path {
    stroke: var(--primary-color);
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

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

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

.hidden {
    display: none;
}

.result-content {
    width: 100%;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.result-header h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.save-pdf-btn {
    padding: 0.6rem 1rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.save-pdf-btn:hover {
    background-color: #e06c4a;
}

.result-summary {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f0f4f9;
    border-radius: 8px;
}

.score-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background-color: var(--primary-color);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
}

.score-value {
    font-size: 1.8rem;
    font-weight: bold;
}

.score-label {
    font-size: 0.8rem;
}

.verdict {
    text-align: center;
    font-size: 1.1rem;
    padding: 0.5rem;
}

.verdict-label {
    font-weight: bold;
    margin-right: 0.5rem;
}

.bias-indicators {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bias-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bias-label {
    min-width: 80px;
    font-weight: 500;
}

.bias-scale {
    flex-grow: 1;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    position: relative;
}

.bias-marker {
    position: absolute;
    top: -5px;
    left: 50%;
    width: 10px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 5px;
    transform: translateX(-50%);
}

.progress-bar {
    flex-grow: 1;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    width: 0;
    transition: width 0.5s ease-in-out;
}

.result-details {
    padding: 1rem 0;
}

.detail-section {
    margin-bottom: 1.5rem;
}

.detail-section h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.detail-item {
    margin-bottom: 1rem;
    padding: 0.8rem;
    border-radius: 8px;
}

.detail-item.warning {
    background-color: rgba(255, 152, 0, 0.1);
    border-left: 3px solid var(--warning-color);
}

.detail-item.danger {
    background-color: rgba(244, 67, 54, 0.1);
    border-left: 3px solid var(--danger-color);
}

.detail-item.success {
    background-color: rgba(76, 175, 80, 0.1);
    border-left: 3px solid var(--success-color);
}

.detail-item h5 {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

footer {
    text-align: center;
    padding: 1.5rem 0;
    color: var(--text-light);
    font-size: 0.8rem;
    margin-top: auto;
}

@media (min-width: 768px) {
    .container {
        padding: 2rem;
        max-width: 800px;
        margin: 0 auto;
    }
    
    .input-group {
        flex-direction: row;
    }
    
    .url-input {
        flex-grow: 1;
    }
    
    header h1 {
        font-size: 2.2rem;
    }
}

