/* Genel Stiller */
* {
margin: 0;
padding: 0;
box-sizing: border-box;	
}
/* Navigation elements reset */
nav,
ol,
ul:not(.stats-grid):not(.detailed-grid):not(.input-footer) {
list-style: none !important;
}
nav {
display: none !important;
}
:root {
--primary-color: #667eea;
--secondary-color: #764ba2;
--indigo-500: #6366f1;
--indigo-600: #8b5cf6;
--red-500: #ef4444;
--blue-500: #3b82f6;
--gray-300: #d1d5db;
--gray-600: #4b5563;
--text-color: #ffffff;
--bg-color: #ffffff;
--border-color: rgba(255, 255, 255, 0.2);
--shadow: 0 10px 15px -3px rgb(0 0 0 / 0.2), 0 4px 6px -4px rgb(0 0 0 / 0.2);
--gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
--gradient-indigo: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}
body {
padding-bottom: 40px;
background: none;               /* Eski background sistemini kapat */
background-color: #ffffff;      /* Alt taraf beyaz kalsın */
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
min-height: 100vh;
color: var(--text-color);
line-height: 1.2;
position: relative;             /* ::before katmanı için şart */
overflow-x: hidden;
}
body::before {
content: "";
position: absolute;
left: 0;
right: 0;
top: -60px !important;          /* Desktop: 60px yukarı al */
height: 1260px;                 /* Mor alan yüksekliği (burayı artır/azalt) */
background-image: linear-gradient(to bottom right, #1e3a8a, #581c87);
background-repeat: no-repeat;
background-size: 100% 100%;
z-index: -1;                    /* İçerik üstte kalsın */
}
.container {
max-width: 1000px;
margin: 0 auto;
/* margin-top: -10px;  -> inline'dan geldiydi, artık main-content üzerinden yönetiyoruz */
}
.main-content {
display: flex;
flex-direction: column;
gap: 1.5rem;
margin-top: -10px !important; /* OK: İç div yapısını yukarı kaydırır */
}
section.py-8.pb-0 {
padding-top: 32px !important;
padding-bottom: 16px !important; 
margin-bottom: 0px;
min-height: unset;
}
/* Mobilde (istersen burada da kontrol edebiliriz; şimdilik aynı bırakıyorum) */
/*
@media (max-width: 768px) {
section.py-8.pb-0 {
padding-top: 32px;
padding-bottom: 16px;
}
}
*/
/* Header Section - PlayCTA Style */
.header-section {
padding: 24px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
margin-bottom: 24px;
}
.header-content {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 20px;
}
.icon-container {
padding: 12px;
background: var(--indigo-500);
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
width: 48px;
height: 48px;
}
.icon-container i {
font-size: 24px;
color: white;
}
.title {
font-size: 1.5rem;
font-weight: 700;
color: white;
margin: 0;
line-height: 1.2;
}
.subtitle {
font-size: 1rem;
color: rgba(255, 255, 255, 0.8);
margin: 0;
line-height: 1.4;
}
/* Glass Container - camsı yapı burada */
.unified-stats-wrapper {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(24px);
border-radius: 12px;
padding: 20px;
border: 1px solid rgba(255, 255, 255, 0.2);
box-shadow: var(--shadow);
animation: fadeIn 0.3s ease-in-out;
/* margin-top: -40px; -> bunu artık kullanmıyoruz, main-content üzerinden fixliyoruz */
}
/* İstatistik Grid */
.stats-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-auto-rows: 1fr;
gap: 0.75rem;
margin-bottom: 20px;
}
/* Artist Card - TSX: relative bg-white/5 backdrop-blur-md rounded-xl p-6 border transition-all duration-300 */
.stat-card {
position: relative;
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(16px);
border-radius: 8px;
padding: 12px;
border: 1px solid rgba(255, 255, 255, 0.1);
transition: all 0.3s ease;
text-align: center;
overflow: hidden;
}
/* Card Hover - TSX: hover:border-white/20 */
.stat-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
border-color: rgba(255, 255, 255, 0.2);
}
.stat-icon {
font-size: 1.5rem;
margin-bottom: 0.5rem;
color: rgba(255, 255, 255, 0.8);
transition: all 0.3s ease;
}
.stat-card:hover .stat-icon {
color: var(--primary-color);
}
.stat-value {
font-size: 2.2rem;
font-weight: 700;
color: white;
margin-bottom: 0.5rem;
font-variant-numeric: tabular-nums;
transition: all 0.3s ease;
}
.stat-card:hover .stat-value {
color: #e9d5ff;
}
.stat-label {
font-size: 0.875rem;
color: rgba(255, 255, 255, 0.7);
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* Kopyalama Butonları */
.copy-btn {
position: absolute;
top: 0.75rem;
right: 0.75rem;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(8px);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 8px;
padding: 6px 12px;
cursor: pointer;
opacity: 0;
transition: all 0.3s ease;
font-size: 0.75rem;
color: rgba(255, 255, 255, 0.8);
}
.stat-card:hover .copy-btn {
opacity: 1;
}
.copy-btn:hover {
background: rgba(255, 255, 255, 0.2);
transform: scale(1.05);
border-color: rgba(255, 255, 255, 0.3);
}
.copy-btn.copied {
background: rgba(34, 197, 94, 0.2);
border-color: rgba(34, 197, 94, 0.4);
color: #16a34a;
}
/* Metin Girişi Bölümü */
.text-input-section {
display: flex;
flex-direction: column;
gap: 0.75rem;
margin-bottom: 20px;
}
.input-header {
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 8px;
}
.input-header h2 {
font-size: 1rem;
font-weight: 600;
color: white;
text-align: center;
}
.input-header h2 i {
margin-right: 0.5rem;
color: rgba(255, 255, 255, 0.8);
}
#textInput {
width: 100%;
min-height: 120px;
padding: 12px;
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 8px;
font-size: 1rem;
font-family: inherit;
resize: vertical;
transition: all 0.3s ease;
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(16px);
color: white;
}
#textInput:focus {
outline: none;
border-color: var(--indigo-500);
background: rgba(255, 255, 255, 0.1);
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.5);
}
#textInput::placeholder {
color: rgba(255, 255, 255, 0.6);
}
.input-footer {
display: flex;
justify-content: space-between;
align-items: center;
gap: 1rem;
margin-top: 12px;
}
/* Play Button - TSX: p-3 rounded-xl bg-indigo-500 text-white hover:scale-105 transition-all duration-300 */
.clear-btn {
padding: 12px;
border-radius: 12px;
background: var(--indigo-500);
color: white;
border: none;
cursor: pointer;
transition: all 0.3s ease;
font-size: 0.875rem;
font-weight: 500;
display: flex;
align-items: center;
gap: 8px;
}
.clear-btn:hover {
transform: scale(1.05);
box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
.char-counter {
font-size: 0.875rem;
color: rgba(255, 255, 255, 0.7);
font-weight: 500;
display: flex;
align-items: center;
gap: 6px;
}
.char-counter i {
color: rgba(255, 255, 255, 0.8);
}
/* Detaylı İstatistikler Desktop */
.detailed-stats {
display: flex;
flex-direction: column;
gap: 0.75rem;
margin-top: 0px;
}
.detailed-stats h2 {
font-size: 1rem;
font-weight: 600;
color: white;
text-align: center;
margin-top: -20px;
margin-bottom: 8px;
}
.detailed-stats h2 i {
margin-right: 0.5rem;
color: rgba(255, 255, 255, 0.8);
}
.detailed-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-auto-rows: 1fr;
gap: 0.75rem;
}
/* Detail Item - Glassmorphism */
.detail-item {
position: relative;
backdrop-filter: blur(16px);
border-radius: 8px;
padding: 12px;
border: 1px solid rgba(255, 255, 255, 0.1);
transition: all 0.3s ease;
display: flex;
align-items: center;
}
/* Pastel renkler için her kutucuk */
.detail-item.unique-words {
background: rgba(219, 39, 119, 0.25); /* Deep rose pink */
}
.detail-item.no-spaces {
background: rgba(59, 130, 246, 0.25); /* Deep blue */
}
.detail-item.reading-time {
background: rgba(34, 197, 94, 0.25); /* Deep green */
}
.detail-item.speaking-time {
background: rgba(168, 85, 247, 0.25); /* Deep purple */
}
.detail-item:hover {
transform: translateX(4px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
border-color: rgba(255, 255, 255, 0.2);
}
.detail-icon {
font-size: 1.25rem;
margin-left: 12px;
color: rgba(255, 255, 255, 0.8);
transition: all 0.3s ease;
}
.detail-item:hover .detail-icon {
color: var(--primary-color);
}
.detail-content {
display: flex;
flex-direction: column;
justify-content: center;
flex: 1;
text-align: center;
}
.detail-label {
font-size: 0.75rem;
color: rgba(255, 255, 255, 0.7);
margin-bottom: 8px;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.5px;
order: 2;
}
.detail-value {
font-size: 1.9rem;
font-weight: 700;
color: white;
transition: all 0.3s ease;
order: 1;
font-variant-numeric: tabular-nums;
}
.detail-item:hover .detail-value {
color: #e9d5ff;
}
.detail-copy-btn {
position: absolute;
top: 0.75rem;
right: 0.75rem;
opacity: 0;
}
.detail-item:hover .detail-copy-btn {
opacity: 1;
}
/* Footer */
.footer {
text-align: center;
margin-top: 48px;
padding: 16px;
color: rgba(255, 255, 255, 0.6);
font-size: 0.875rem;
}
/* Animasyonlar */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes soundwave {
0%, 100% { 
height: 10px; 
opacity: 0.3;
}
50% { 
height: 40px; 
opacity: 1;
}
}
@keyframes pulse {
0% {
transform: scale(1);
}
50% {
transform: scale(1.02);
}
100% {
transform: scale(1);
}
}
/* Focus styles for accessibility */
input:focus,
textarea:focus,
select:focus,
button:focus {
outline: none;
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.5);
}
/* Success state */
.success {
animation: pulse 0.5s ease-in-out;
}
/* Copy Tooltip */
.copy-tooltip {
position: absolute;
top: -30px;
left: 50%;
transform: translateX(-50%);
background: #16a34a;
color: white;
padding: 4px 8px;
border-radius: 4px;
font-size: 12px;
font-weight: 500;
white-space: nowrap;
z-index: 1000;
pointer-events: none;
opacity: 0;
transition: opacity 0.3s ease;
}
/* Error state */
.error input,
.error textarea {
border-color: var(--red-500);
box-shadow: 0 0 0 1px var(--red-500);
}
/* Custom scrollbar */
textarea::-webkit-scrollbar {
width: 8px;
}
textarea::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.1);
border-radius: 4px;
}
textarea::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.3);
border-radius: 4px;
}
textarea::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.5);
}
/* Responsive Tasarım */
@media (max-width: 1024px) {
.stats-grid {
grid-template-columns: repeat(4, 1fr);
gap: 0.8rem;
}
.detailed-grid {
grid-template-columns: repeat(4, 1fr);
gap: 0.8rem;
}
}
@media (max-width: 768px) {
body {
padding: 24px 0px;
background-position: 0 -30px !important; /* Mobil: body gradient 20px yukarı */
}
.container {
max-width: 100%;
padding-left: 10px !important;
padding-right: 10px !important;
}
}
.title {
font-size: 1.36rem;
}
.subtitle {
font-size: 1.125rem;
}
.stats-grid {
grid-template-columns: repeat(2, 1fr);
gap: 0.8rem;
}
.detailed-grid {
grid-template-columns: repeat(2, 1fr);
gap: 0.8rem;
}
.input-footer {
flex-direction: column;
gap: 1rem;
align-items: stretch;
}
.clear-btn {
width: 100%;
padding: 12px 16px;
font-size: 0.875rem;
justify-content: center;
}
}
/* Tablet ve altı (<= 768px) */
@media (max-width: 768px) {
body {
background-size: 100% 1100px !important; /* Tablet için biraz daha kısa gradient */
}
/* Detaylı İstatistikler Mobil */
.detailed-stats {	
padding-top: 5px
}	
@media (max-width: 768px) {
body::before {
top: -80px !important;                 /* base ile aynı kalsın */
transform: translateY(-40px) !important; /* ✅ kesin 30px yukarı */
height: 1150px !important;           /* 1040px -> 1140px (altta +100px) */
}
}
/* Küçük telefonlar (<= 480px) */
@media (max-width: 480px) {
body {
background-size: 100% 1115px; /* Telefon için daha da kısaltılmış gradient */
}
}
@media (max-width: 480px) {
body {
padding: 16px 8px;
}
.unified-stats-wrapper {
padding: 16px;
border-radius: 12px;
}
.stats-grid {
grid-template-columns: repeat(2, 1fr);
gap: 0.6rem;
}
.detailed-grid {
grid-template-columns: repeat(2, 1fr);
gap: 0.6rem;
}
.stat-card {
padding: 16px;
border-radius: 8px;
}
.detail-item {
padding: 16px;
border-radius: 8px;
}
.stat-value {
font-size: 1.5rem;
}
.title {
font-size: 1.5rem;
}
.subtitle {
font-size: 1rem;
}
}
/* Print styles */
@media print {
body {
background: white !important;
color: black !important;
padding: 1rem !important;
}
.unified-stats-wrapper {
background: white !important;
border: 1px solid #ccc !important;
box-shadow: none !important;
backdrop-filter: none !important;
}
.stat-card,
.detail-item {
background: white !important;
border: 1px solid #ccc !important;
}
button {
display: none !important;
}
}
/* High contrast mode */
@media (prefers-contrast: high) {
:root {
--border-color: #000;
--text-color: #000;
--bg-color: #fff;
}
input,
textarea,
select {
border: 2px solid var(--border-color);
background: var(--bg-color);
color: var(--text-color);
}
.stat-card,
.detail-item {
border: 2px solid white;
}
.copy-btn {
border: 1px solid white;
}
}
/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
* {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}
/* Modern theme variations */
.theme-modern {
--primary-color: #667eea;
--secondary-color: #764ba2;
}
.theme-modern .bg-indigo-500 {
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}
.theme-modern .bg-red-500 {
background: linear-gradient(135deg, #ff6b6b, #ee5a52);
}
