/* ===================================
   Plagiarism Checker Tool Styles
   LinkShare Theme Integration
   =================================== */

/* ===== CSS Variables ===== */
:root {
    --primary-color: #128C7E;
    --secondary-color: #25D366;
    --accent-color: #075E54;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --danger: #dc3545;
    --warning: #ffc107;
    --success: #28a745;
    --border-radius: 12px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* ===== Hero Section ===== */
.hero-section {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.hero-section h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.hero-section h1 i {
    font-size: 2.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(18, 140, 126, 0.3);
}

/* ===== Tool Card ===== */
.tool-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.card-header h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

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

/* ===== Input Section ===== */
.input-section {
    margin-bottom: 1.5rem;
}

textarea {
    width: 100%;
    min-height: 250px;
    padding: 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: var(--transition);
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(18, 140, 126, 0.1);
}

.input-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.char-counter,
.word-counter {
    font-weight: 500;
}

.char-counter span,
.word-counter span {
    color: var(--primary-color);
    font-weight: 700;
}

/* ===== Action Button ===== */
.action-btn {
    width: 100%;
    padding: 1.2rem;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--box-shadow);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(18, 140, 126, 0.4);
}

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

.action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== Result Section ===== */
.result-section {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    animation: slideDown 0.5s ease-in-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }

    to {
        opacity: 1;
        max-height: 2000px;
    }
}

.result-header {
    margin-bottom: 2rem;
}

.result-header h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== Circular Progress Score Display ===== */
.score-display {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.score-circle {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 12;
}

.progress-ring-fill {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 534;
    stroke-dashoffset: 534;
    transition: stroke-dashoffset 1s ease-in-out, stroke 0.5s ease;
}

.score-content {
    position: absolute;
    text-align: center;
}

.score-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.score-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* ===== Result Message ===== */
.result-message {
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-align: center;
    border-left: 4px solid var(--primary-color);
}

/* ===== Analysis Section ===== */
.analysis-section {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.analysis-section h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.analysis-item {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.analysis-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.analysis-label {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
}

.analysis-value {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* ===== Matched Content Section ===== */
.matched-content {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.matched-content h4 {
    color: var(--danger);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#matched-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.matched-item {
    padding: 1rem;
    background: #fff3cd;
    border-left: 4px solid var(--warning);
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== SEO Content Section ===== */
.seo-content {
    margin-top: 3rem;
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--box-shadow);
}

.content-article h2 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    font-size: 2rem;
}

.content-article h3 {
    color: var(--accent-color);
    margin: 1.5rem 0 1rem;
    font-size: 1.5rem;
}

.content-article p {
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.content-article ul,
.content-article ol {
    margin: 1rem 0 1rem 2rem;
    line-height: 1.8;
}

.content-article li {
    margin-bottom: 0.5rem;
}

/* ===== Benefits Grid ===== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.benefit-card {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.benefit-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.benefit-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* ===== Loading Animation ===== */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid var(--white);
    border-top-color: transparent;
    border-radius: 50%;
    animation: rotate 1s linear infinite;
    margin-left: 10px;
}

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

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 1.8rem;
        flex-direction: column;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .score-display {
        flex-direction: column;
        align-items: center;
    }

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

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

    .tool-card {
        padding: 1.5rem;
    }

    .seo-content {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 1rem;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .card-header h2 {
        font-size: 1.5rem;
    }

    textarea {
        min-height: 200px;
        padding: 1rem;
    }

    .score-circle {
        width: 150px;
        height: 150px;
    }

    .score-value {
        font-size: 2rem;
    }

    .input-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
}