/* Selzy AI Grammar Checker - Styles */

.grammar-checker-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    /*padding: 80px 20px;*/
    background: #f7f8f9;
}

.grammar-header-section {
    text-align: center;
    margin-bottom: 72px;
}

.grammar-breadcrumbs {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.grammar-breadcrumb {
    font-weight: 700;
    font-size: 12px;
    line-height: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #737587;
    display: flex;
    align-items: center;
    gap: 16px;
}

.grammar-breadcrumb::after {
    content: '›';
    color: #9393a0;
}

.grammar-breadcrumb:last-child::after {
    display: none;
}

.grammar-main-title {
    font-weight: 700;
    font-size: 44px;
    line-height: 52px;
    color: #191d3a;
    margin-bottom: 20px;
}

.grammar-main-description {
    font-weight: 500;
    font-size: 20px;
    line-height: 28px;
    color: #191d3a;
    max-width: 820px;
    margin: 0 auto;
}

.grammar-checker-container {
    background: white;
    border-radius: 24px;
    box-shadow: 0px 8px 32px 0px rgba(25, 29, 58, 0.12);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.grammar-checker-header {
    background: #191d3a;
    padding: 14px 36px;
    height: 56px;
    display: flex;
    align-items: center;
}

.grammar-checker-header h2 {
    margin-bottom: 0;
    font-weight: 700;
    font-size: 22px;
    line-height: 28px;
    color: white;
}

.grammar-checker-content {
    padding: 0;
}

.grammar-input-section {
    padding: 0 32px;
    padding-top: 20px;
}

.grammar-section-label {
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: #191d3a;
    margin-bottom: 12px;
}

.grammar-input-wrapper {
    position: relative;
}

.grammar-text-input {
    width: 100%;
    min-height: 120px;
    padding: 8px 16px;
    padding-bottom: 48px;
    border: 2px solid #eeeff1;
    border-radius: 12px;
    font-size: 16px;
    line-height: 24px;
    font-family: 'Mulish', sans-serif;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.grammar-text-input:focus {
    outline: none;
    border-color: #3b1b67;
}

.grammar-text-input::placeholder {
    color: #a3a5b0;
}

.grammar-submit-btn {
    position: absolute;
    bottom: 12px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #3b1b67 0%, #2d1450 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.grammar-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 27, 103, 0.3);
}

.grammar-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

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

.grammar-submit-btn svg {
    width: 16px;
    height: 16px;
    fill: white;
}

.grammar-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: grammar-spin 0.8s linear infinite;
}

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

.grammar-options-section {
    padding: 20px 32px;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.grammar-select-wrapper {
    position: relative;
}

.grammar-custom-select {
    appearance: none;
    background: white;
    border: 2px solid #eeeff1;
    border-radius: 12px;
    padding: 10px 40px 10px 16px;
    font-size: 16px;
    line-height: 24px;
    font-family: 'Mulish', sans-serif;
    font-weight: 500;
    color: rgba(25, 29, 58, 0.8);
    cursor: pointer;
    min-width: 176px;
}

.grammar-custom-select:focus {
    outline: none;
    border-color: #3b1b67;
}

.grammar-select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 10px;
    color: #191d3a;
}

.grammar-divider {
    height: 1px;
    background: #e6ebf9;
    margin: 0 24px;
}

.grammar-output-section {
    padding: 20px 32px;
    background: #fafafa;
}

.grammar-output-text {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    background: white;
    border: 2px solid #eeeff1;
    border-radius: 12px;
    font-size: 16px;
    line-height: 24px;
    color: #191d3a;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.grammar-output-placeholder {
    color: #a3a5b0;
    font-style: italic;
}

.grammar-message-container {
    margin-top: 16px;
}

.grammar-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.grammar-message.success {
    background: #e6f7f0;
    color: #0d6943;
    border-left: 4px solid #0d6943;
}

.grammar-message.error {
    background: #fee;
    color: #c33;
    border-left: 4px solid #c33;
}

.grammar-examples-section {
    padding: 0 24px 20px;
}

.grammar-examples-label {
    font-weight: 700;
    font-size: 12px;
    line-height: 20px;
    text-transform: uppercase;
    color: #a3a5b0;
    margin-bottom: 12px;
}

.grammar-examples-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.grammar-example-btn {
    background: #f0f5fe;
    border: 1px solid #3367ee;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 20px;
    color: #3367ee;
    cursor: pointer;
    font-family: 'Mulish', sans-serif;
    transition: background 0.2s ease;
    flex: 1 0 auto;
}

.grammar-example-btn:hover {
    background: #e6effd;
}

.grammar-copy-btn {
    margin-top: 12px;
    padding: 10px 24px;
    background: white;
    border: 2px solid #3b1b67;
    border-radius: 12px;
    color: #3b1b67;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Mulish', sans-serif;
    cursor: pointer;
    transition: background 0.2s ease;
    display: none;
}

.grammar-copy-btn:hover {
    background: #f3f0ff;
}

.grammar-copy-btn.show {
    display: inline-block;
}

.grammar-character-count {
    text-align: right;
    font-size: 12px;
    color: #a3a5b0;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .grammar-checker-wrapper {
        /*padding: 40px 16px;*/
    }

    .grammar-main-title {
        font-size: 32px;
        line-height: 40px;
    }

    .grammar-main-description {
        font-size: 18px;
        line-height: 26px;
    }

    .grammar-checker-header {
        padding: 14px 20px;
    }

    .grammar-input-section,
    .grammar-options-section,
    .grammar-output-section,
    .grammar-examples-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .grammar-options-section {
        flex-direction: column;
        align-items: stretch;
    }

    .grammar-custom-select {
        width: 100%;
    }

    .grammar-examples-grid {
        flex-direction: column;
    }

    .grammar-example-btn {
        width: 100%;
    }
}
