/* Ana Stil Dosyası */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Indie+Flower&display=swap');

:root {
    --primary-color: #45a049;
    --secondary-color: #3e8e41;
    --accent-color: #4CAF50;
    --light-color: #f9f9f9;
    --dark-color: #333;
    --danger-color: #f44336;
    --warning-color: #ff9800;
    --gray-color: #ccc;
    --light-gray: #f2f2f2;
    --yellow-note: #fff9c4;
    --blue-note: #e3f2fd;
    --green-note: #e8f5e9;
    --pink-note: #fce4ec;
    --purple-note: #f3e5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Noto Color Emoji', sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
    color: var(--dark-color);
    background-image: url('https://www.transparenttextures.com/patterns/natural-paper.png');
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Stil */
header {
    background-color: var(--primary-color);
    padding: 20px 0;
    color: white;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Düğme Stilleri */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn i {
    margin-right: 5px;
}

.btn-primary {
    background-color: var(--primary-color);
}

.btn-danger {
    background-color: var(--danger-color);
}

.btn-warning {
    background-color: var(--warning-color);
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1.2rem;
}

/* Animasyonlar */
@keyframes float {
    0% { transform: translateY(0px) rotate(-1deg); }
    50% { transform: translateY(-5px) rotate(0deg); }
    100% { transform: translateY(0px) rotate(-1deg); }
}

@keyframes paperAppear {
    0% { opacity: 0; transform: scale(0.8) rotate(-3deg); }
    100% { opacity: 1; transform: scale(1) rotate(-1deg); }
}

/* Temenni Stil */
.wishes-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.wish-card {
    position: relative;
    min-height: 200px;
    padding: 25px;
    background-color: var(--yellow-note);
    border-radius: 2px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: 'Caveat', cursive;
    transform: rotate(-1deg);
    animation: paperAppear 0.5s ease forwards;
    backface-visibility: hidden;
}

.wish-card:nth-child(2n) {
    background-color: var(--blue-note);
    transform: rotate(1deg);
    font-family: 'Dancing Script', cursive;
}

.wish-card:nth-child(3n) {
    background-color: var(--green-note);
    transform: rotate(-2deg);
    font-family: 'Indie Flower', cursive;
}

.wish-card:nth-child(4n) {
    background-color: var(--pink-note);
    transform: rotate(2deg);
}

.wish-card:nth-child(5n) {
    background-color: var(--purple-note);
    transform: rotate(-1.5deg);
}

.wish-card:hover {
    transform: translateY(-5px) rotate(-1deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.wish-card:nth-child(2n):hover {
    transform: translateY(-5px) rotate(1deg);
}

.wish-card:nth-child(3n):hover {
    transform: translateY(-5px) rotate(-2deg);
}

.wish-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15px;
    width: 40px;
    height: 7px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 0 0 3px 3px;
}

.wish-card::after {
    content: '';
    position: absolute;
    bottom: 20px;
    right: -10px;
    width: 30px;
    height: 30px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23555"><path d="M18 2l1.5 1.5L3 20l1.5 1.5L21 5l1.5 1.5V2z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.2;
    transform: rotate(-45deg);
}

.wish-content {
    font-size: 1.5rem;
    margin-bottom: 15px;
    flex-grow: 1;
    font-weight: 500;
    line-height: 1.4;
    word-wrap: break-word;
}

.wish-date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
}

.wish-support {
    display: flex;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    margin-top: 10px;
}

.support-btn {
    background: linear-gradient(45deg, #e91e63, #f44336);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    padding: 10px 18px;
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 180px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Destek butonuna tıklandığında eklenen animasyon sınıfı */
.support-btn.supporting {
    animation: pulse 1.5s infinite;
    background: linear-gradient(45deg, #ff0844, #ff1e1e);
    box-shadow: 0 0 15px rgba(233, 30, 99, 0.7);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(233, 30, 99, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(233, 30, 99, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(233, 30, 99, 0);
    }
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.5); color: #ff0844; }
    50% { transform: scale(1); }
    75% { transform: scale(1.5); color: #ff0844; }
    100% { transform: scale(1); }
}

.support-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #f44336, #e91e63);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.support-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.support-btn:hover::after {
    opacity: 1;
}

.support-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.support-btn i {
    color: white;
    font-size: 1.4rem;
    margin-right: 8px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.support-count {
    margin-left: 8px;
    font-weight: 700;
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.95rem;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
}

/* Formlar */
.form-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 25px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(69, 160, 73, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Alert Stilleri */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    color: white;
}

.alert-success {
    background-color: var(--accent-color);
}

.alert-danger {
    background-color: var(--danger-color);
}

.alert-warning {
    background-color: var(--warning-color);
}

/* Footer Stilleri */
footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

footer p {
    opacity: 0.8;
}

/* Arama Kutusu */
.search-container {
    margin: 20px 0;
    position: relative;
}

.search-box {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 1px solid var(--gray-color);
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(69, 160, 73, 0.1);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    font-size: 1.2rem;
}

/* Duyarlı Tasarım */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }
    
    .wishes-container {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 12px 25px;
        font-size: 1.1rem;
    }
    
    .wish-card {
        min-height: 180px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .form-container {
        padding: 15px;
    }
    
    .wish-content {
        font-size: 1.3rem;
    }
}

/* Modal Pencere Stilleri */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-50px);}
    to {opacity: 1; transform: translateY(0);}
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--dark-color);
}

/* Kategori Etiketleri */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    gap: 8px;
}

.category-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
    background-color: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-tag:hover {
    transform: scale(1.05);
}

.category-tag.altyapi {
    background-color: #2196F3;
}

.category-tag.egitim {
    background-color: #9C27B0;
}

.category-tag.cevre {
    background-color: #4CAF50;
}

.category-tag.kultur {
    background-color: #FF9800;
}

.category-tag.saglik {
    background-color: #E91E63;
}

.category-tag.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Aktif filtreler için stil */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 15px 0;
    gap: 10px;
}

.filter-tag {
    background-color: #e6f7ff;
    border: 1px solid #91d5ff;
    color: #1890ff;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

.remove-filter {
    margin-left: 5px;
    color: #f44336;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
}

.remove-filter:hover {
    color: #d32f2f;
}

.clear-all-filters {
    margin-left: auto;
    color: #f44336;
    font-size: 0.9rem;
    text-decoration: none;
}

.clear-all-filters:hover {
    text-decoration: underline;
}

/* Emoji Seçici */
.emoji-picker {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    justify-content: center;
    max-height: 150px;
    overflow-y: auto;
    padding: 5px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.emoji-tools {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.emoji-btn {
    font-family: 'Noto Color Emoji', Apple Color Emoji, Segoe UI Emoji, sans-serif;
    font-size: 1.5rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin: 2px;
    padding: 3px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.emoji-btn:hover {
    background-color: #f0f0f0;
    transform: scale(1.2);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 2;
}

.emoji-btn:active {
    transform: scale(0.95);
}

/* Modern emoji picker */
emoji-picker {
    width: 100%;
    height: 300px;
    margin-bottom: 15px;
    --background: white;
    --border-color: #ddd;
    --category-emoji-size: 1.5rem;
    --emoji-size: 1.8rem;
    --input-border-color: #ccc;
    --input-font-color: #333;
    --input-font-size: 1rem;
    --input-padding: 8px;
}

/* Bu sınıf, emojilerin farklı tarayıcılarda uyumluluğunu artırır */
.emoji-text {
    font-family: 'Noto Color Emoji', Apple Color Emoji, Segoe UI Emoji, sans-serif;
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    line-height: 1;
}

/* Temenni içerisindeki emojileri düzgün göster */
.wish-content img.emoji {
    height: 1.2em;
    width: 1.2em;
    margin: 0 .05em 0 .1em;
    vertical-align: -0.1em;
}

/* Sosyal Paylaşım */
.social-share {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wish-card:hover .social-share {
    opacity: 1;
}

.share-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: color 0.2s ease;
}

.share-btn:hover {
    color: rgba(0, 0, 0, 0.8);
}

/* Yönetici Paneli Stilleri */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background-color: var(--dark-color);
    color: white;
    padding: 20px 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.admin-logo {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.admin-logo h2 {
    font-size: 1.5rem;
    color: white;
}

.admin-menu {
    list-style: none;
}

.admin-menu li {
    margin-bottom: 5px;
}

.admin-menu a {
    display: block;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.admin-menu a:hover,
.admin-menu a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.admin-menu i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.admin-content {
    flex: 1;
    padding: 20px;
    background-color: #f5f5f5;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background-color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.admin-title h1 {
    font-size: 1.5rem;
    color: var(--dark-color);
}

.admin-user {
    display: flex;
    align-items: center;
}

.admin-user span {
    margin-right: 10px;
}

/* Tablo Stilleri */
.table-container {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

table th {
    background-color: var(--light-gray);
    font-weight: 600;
}

table tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.action-btns {
    display: flex;
    gap: 5px;
}

.action-btn {
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9rem;
}

.view-btn {
    background-color: #03A9F4;
    color: white;
}

.approve-btn {
    background-color: var(--accent-color);
    color: white;
}

.delete-btn {
    background-color: var(--danger-color);
    color: white;
}

/* Duyarlı Admin Paneli */
@media (max-width: 991px) {
    .admin-container {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        padding: 10px 0;
    }
    
    .admin-menu {
        display: flex;
        flex-wrap: wrap;
    }
    
    .admin-menu li {
        margin-right: 5px;
    }
    
    .admin-menu a {
        padding: 8px 15px;
    }
}

@media (max-width: 768px) {
    .admin-menu {
        flex-direction: column;
    }
    
    .table-container {
        font-size: 0.9rem;
    }
    
    .action-btns {
        flex-direction: column;
    }
}

.support-btn.already-supported {
    background: linear-gradient(45deg, #9e9e9e, #757575);
    opacity: 0.8;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: default;
}

.support-btn.already-supported:hover {
    transform: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.support-btn.already-supported::after {
    display: none;
} 