/* ===================================
   AI Detector & Text Humanizer 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);
}

/* ===== Global Styles ===== 
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}
*/
/* ===== Navigation ===== 
.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 1rem 0;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-brand i {
    font-size: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}
*/
/* ===== 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);
}

/* ===== Tab Container ===== */
.tab-container {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
}

.tab-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.tab-btn {
    flex: 1;
    max-width: 300px;
    padding: 1rem 2rem;
    border: none;
    background: var(--bg-light);
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(18, 140, 126, 0.4);
}

/* ===== Tab Content ===== */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.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);
}

.char-counter {
    text-align: right;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ===== 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: 1000px;
    }
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

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

.copy-btn {
    padding: 0.6rem 1.5rem;
    border: none;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

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

.score-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--white);
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
}

.score-circle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 8px solid transparent;
    border-top-color: var(--primary-color);
    animation: rotate 2s linear infinite;
    opacity: 0;
}

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

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

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

.result-message {
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-align: center;
}

.result-details {
    padding: 1rem;
    background: var(--white);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ===== Humanized Text Output ===== */
.humanized-text {
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    min-height: 200px;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* ===== 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;
}


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

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

    .tab-buttons {
        flex-direction: column;
    }

    .tab-btn {
        max-width: 100%;
    }

    .nav-links {
        display: none;
    }

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

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

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

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .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;
    }
}

/* ===== 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;
}