/*
 * DigitalRange Word Counter
 */


/*
 * Main container
 */
.dr-word-counter {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}


/*
 * Header
 */
.dr-word-counter-header {
    margin-bottom: 24px;
}


.dr-word-counter-title {
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 1.2;
}


.dr-word-counter-description {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}


/*
 * Input wrapper
 */
.dr-word-counter-input-wrapper {
    margin-bottom: 20px;
}


.dr-word-counter-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}


.dr-word-counter-input {
    display: block;
    width: 100%;
    min-height: 300px;
    padding: 16px;

    border: 1px solid #d6d6d6;
    border-radius: 8px;

    background: #ffffff;
    color: #222222;

    font-family: inherit;
    font-size: 16px;
    line-height: 1.7;

    resize: vertical;

    box-sizing: border-box;
}


.dr-word-counter-input:focus {
    outline: none;

    border-color: #2271b1;

    box-shadow:
        0 0 0 2px
        rgba(34, 113, 177, 0.12);
}


/*
 * Statistics grid
 */
.dr-word-counter-statistics {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;

    margin-bottom: 20px;
}


/*
 * Individual statistic
 */
.dr-word-counter-stat {
    padding: 18px;

    border: 1px solid #e1e1e1;
    border-radius: 8px;

    background: #f8f9fa;

    text-align: center;
}


.dr-word-counter-stat-label {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;
    line-height: 1.4;
}


.dr-word-counter-stat-value {
    display: block;

    font-size: 25px;
    line-height: 1.2;
}


/*
 * Action buttons
 */
.dr-word-counter-actions {
    display: flex;

    gap: 10px;

    margin-bottom: 20px;
}


.dr-word-counter-button {
    padding: 10px 18px;

    border: 1px solid #2271b1;
    border-radius: 6px;

    background: #2271b1;
    color: #ffffff;

    font-family: inherit;
    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease;
}


.dr-word-counter-button:hover {
    background: #135e96;
    border-color: #135e96;
}


.dr-word-counter-button-secondary {
    background: #ffffff;
    color: #333333;

    border-color: #c8c8c8;
}


.dr-word-counter-button-secondary:hover {
    background: #f2f2f2;
    border-color: #999999;
}


/*
 * Information box
 */
.dr-word-counter-info {
    margin-top: 10px;

    padding: 14px 16px;

    border-left: 3px solid #2271b1;

    background: #f7f9fb;
}


.dr-word-counter-info p {
    margin: 0;

    font-size: 14px;
    line-height: 1.6;
}


/*
 * Tablet
 */
@media (max-width: 768px) {

    .dr-word-counter-statistics {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .dr-word-counter-title {
        font-size: 28px;
    }

}


/*
 * Mobile
 */
@media (max-width: 480px) {

    .dr-word-counter-statistics {
        grid-template-columns: 1fr;
    }


    .dr-word-counter-actions {
        flex-direction: column;
    }


    .dr-word-counter-button {
        width: 100%;
    }


    .dr-word-counter-input {
        min-height: 240px;
    }

}