/* style.css - Saklı Günlük Projesi 
 * Tüm sayfalarda kullanılan stil dosyası
 */

/* Genel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

h1 {
    color: #3a76f0;
    margin-bottom: 20px;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

/* Butonlar */
.btn {
    display: inline-block;
    background-color: #3a76f0;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(58, 118, 240, 0.2);
}

.btn:hover {
    background-color: #2857c2;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(58, 118, 240, 0.3);
}

.btn-secondary {
    background-color: #e0e0e0;
    color: #666;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background-color: #d0d0d0;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

/* Ana Sayfa */
.welcome-box {
    background-color: white;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.welcome-box p {
    margin-bottom: 25px;
    color: #666;
}

.features {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    margin: 10px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    width: 230px;
}

.icon {
    font-size: 24px;
    margin-right: 10px;
}

/* Günlük Yazma Sayfası */
.diary-box {
    background-color: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

textarea {
    width: 100%;
    height: 300px;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    resize: vertical;
    font-family: inherit;
    font-size: 16px;
    margin-bottom: 20px;
    transition: border 0.3s;
}

textarea:focus {
    outline: none;
    border-color: #3a76f0;
    box-shadow: 0 0 0 3px rgba(58, 118, 240, 0.2);
}

.mood-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.mood-icon {
    font-size: 36px;
    margin-right: 10px;
}

.mood-text {
    font-size: 18px;
    font-weight: 500;
    color: #666;
}

/* Sonuç Sayfası */
.result-box {
    background-color: white;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.result-box p {
    margin-bottom: 25px;
    color: #666;
}

.success {
    border-top: 5px solid #3ad16e;
}

.error {
    border-top: 5px solid #f05050;
}

.mood-result {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.mood-result .mood-icon {
    font-size: 48px;
    margin-right: 20px;
}

.mood-result p {
    margin: 0;
    font-size: 18px;
}

/* Admin Sayfası */
.admin-container {
    max-width: 1000px;
}

.admin-header {
    margin-bottom: 30px;
}

.stats-container {
    background-color: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stats-container h2 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-box {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    background-color: #f8f9fa;
}

.stat-icon {
    font-size: 36px;
    margin-right: 15px;
}

.positive .stat-icon, .stat-icon.positive {
    color: #3ad16e;
}

.negative .stat-icon, .stat-icon.negative {
    color: #f05050;
}

.neutral .stat-icon, .stat-icon.neutral {
    color: #ffc107;
}

.stat-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.stat-info p {
    font-size: 14px;
    color: #666;
}

.progress-bars {
    margin-top: 20px;
}

.progress-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.progress-label {
    width: 70px;
    text-align: right;
    margin-right: 10px;
    font-size: 14px;
    color: #666;
}

.progress {
    flex-grow: 1;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    transition: width 0.3s;
}

.progress-bar.positive {
    background-color: #3ad16e;
}

.progress-bar.negative {
    background-color: #f05050;
}

.progress-bar.neutral {
    background-color: #ffc107;
}

.progress-value {
    width: 45px;
    text-align: right;
    margin-left: 10px;
    font-size: 14px;
    font-weight: 600;
}

.diary-list {
    margin-bottom: 30px;
}

.diary-list h2 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.diary-card {
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #ddd;
}

.diary-card.positive {
    border-left-color: #3ad16e;
}

.diary-card.negative {
    border-left-color: #f05050;
}

.diary-card.neutral {
    border-left-color: #ffc107;
}

.diary-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.diary-mood {
    font-size: 24px;
}

.diary-date {
    color: #888;
    font-size: 14px;
}

.diary-content {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 16px;
    white-space: pre-wrap;
}

.diary-footer {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #aaa;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.no-data {
    text-align: center;
    color: #888;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
}

.admin-footer {
    text-align: center;
    margin-top: 30px;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        margin: 20px auto;
    }
    
    .welcome-box, .diary-box, .result-box, .stats-container, .diary-card {
        padding: 20px;
    }
    
    .feature {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}