/* Character Calculator - Tek scroll'a sığacak kompakt layout */
.cc-page {
    padding: 1rem max(1rem, env(safe-area-inset-left, 0px)) 1.25rem max(1rem, env(safe-area-inset-right, 0px));
    max-width: 1100px;
    margin: 0 auto;
    min-height: 0;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.cc-header {
    margin-bottom: 1rem;
}

.cc-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 0.15rem;
}

.cc-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.cc-input-card {
    background: var(--card-bg);
    border-radius: var(--radius-ui, 16px);
    padding: 1rem;
    box-shadow: var(--shadow-card, 0 4px 20px rgba(0, 0, 0, 0.04));
    border: 1px solid var(--border-subtle, #f3f4f6);
    margin-bottom: 1rem;
}

.cc-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cc-textarea {
    width: 100%;
    min-width: 0;
    height: 90px;
    min-height: 90px;
    max-height: 90px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--body-bg);
    color: var(--text-primary);
    resize: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cc-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.cc-textarea::placeholder {
    color: var(--text-muted);
}

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

.cc-input-footer strong {
    color: var(--text-primary);
}

/* Conversion grid - 6 ayrı kart, 3 sütun, kompakt */
.cc-conversion-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.cc-conv-card {
    background: var(--card-bg);
    border-radius: var(--radius-ui, 16px);
    padding: 0.75rem;
    box-shadow: var(--shadow-card, 0 4px 20px rgba(0, 0, 0, 0.04));
    border: 1px solid var(--border-subtle, #f3f4f6);
}

.cc-conv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.cc-conv-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.cc-copy-btn {
    width: 28px;
    height: 28px;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    background: transparent;
    color: var(--accent-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s;
    flex-shrink: 0;
}

.cc-copy-btn:hover {
    background: var(--accent-color);
    color: white;
}

.cc-conv-output {
    width: 100%;
    height: 60px;
    min-height: 60px;
    max-height: 60px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    line-height: 1.4;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--body-bg);
    color: var(--text-primary);
    resize: none;
}

.cc-conv-output:focus {
    outline: none;
    border-color: var(--accent-color);
}

@media (max-width: 900px) {
    .cc-conversion-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .cc-conversion-grid {
        grid-template-columns: 1fr;
    }

    .cc-title {
        font-size: 1.3rem;
    }

    .cc-textarea {
        font-size: 16px;
    }

    .cc-copy-btn {
        min-width: 44px;
        min-height: 44px;
    }
}
