/* Custom styles */
.form-select {
    @apply w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-green-500 focus:border-green-500;
}

/* Card selection hover effect */
select option:hover {
    background-color: #f0fdf4;
}

/* Button hover animation */
#calculateBtn {
    transition: all 0.3s ease;
}

#calculateBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Result animation */
#result {
    transition: all 0.3s ease-in-out;
}

#result:not(.hidden) {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Responsive adjustments */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    nav .space-x-4 {
        display: none;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Custom styles */
.card-selection {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.card-selection .text-xl {
    margin-bottom: 0.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
}

.selected-card {
    width: 60px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #363a47;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    font-size: 24px;
    font-weight: bold;
    transition: all 0.2s ease;
    margin: 0 auto;
}

.selected-card:hover {
    border-color: #03989E;
    color: #03989E;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.selected-card.bust {
    color: #fff;
    background-color: #dc2626 !important;
    border-color: #dc2626;
}

.selected-card.current {
    border-color: #03989E;
    color: #03989E;
    box-shadow: 0 0 0 2px rgba(3, 152, 158, 0.2);
}

.card-options {
    transition: all 0.2s ease;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card-options.show {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 12px;
    animation: fadeIn 0.2s ease-in-out;
}

.card-option {
    width: 43px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #363a47;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.2s ease;
    cursor: pointer;
}

.card-option:hover {
    color: #fff !important;
    background-color: #03989E !important;
    border-color: #03989E !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-option.hearts, .card-option.diamonds {
    color: #DC2626;
}

.card-option.clubs, .card-option.spades {
    color: #1F2937;
}

.card-placeholder {
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.selected-card:hover .card-placeholder {
    opacity: 0.7;
}

/* Kart görünümü */
.card {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4px;
}

.card-corner {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    line-height: 1;
}

.card-corner.top-left {
    align-self: flex-start;
}

.card-corner.bottom-right {
    align-self: flex-end;
    transform: rotate(180deg);
}

.card-center {
    font-size: 1.5rem;
    text-align: center;
    margin: auto;
}

/* Kart Modal */
#cardModal {
    backdrop-filter: blur(4px);
}

#modalCardGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(43px, 1fr));
    gap: 0.5rem;
    padding: 1rem;
}

/* Sonuç Bölümü */
#strategyResult {
    line-height: 1.5;
}

#strategyResult span {
    font-weight: 600;
}

/* Tooltip Özelleştirmeleri */
.tippy-box {
    background-color: #fff;
    color: #363a47;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 14px;
    line-height: 1.5;
    max-width: 300px;
}

.tippy-box[data-placement^='bottom'] > .tippy-arrow::before {
    border-bottom-color: #fff;
}

.tippy-box[data-placement^='bottom'] > .tippy-arrow::after {
    border-bottom-color: #e5e7eb;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .selected-card {
        width: 50px;
        height: 70px;
        font-size: 20px;
    }

    .card-options {
        width: 200px !important;
    }

    .card-option {
        width: 38px;
        height: 53px;
        font-size: 18px;
    }
    
    .card-option:hover {
        color: #fff !important;
        background-color: #03989E !important;
        border-color: #03989E !important;
    }

    #modalCardGrid {
        grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
        gap: 0.375rem;
        padding: 0.75rem;
    }

    .card-selection .text-xl {
        font-size: 1.125rem;
        margin-bottom: 0.375rem;
    }
}

/* Animasyonlar */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

#result:not(.hidden) {
    animation: fadeIn 0.3s ease-out;
}

/* Oyun Kuralları Bölümü */
#rules {
    background-color: #fafafa;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#rules label {
    user-select: none;
}

/* Form Elemanları */
.form-radio {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    border: 2px solid #e5e7eb;
    transition: all 0.2s ease;
}

.form-radio:checked {
    border-color: #03989E;
    background-color: #03989E;
}

.form-radio:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(3, 152, 158, 0.2);
}

/* Dealer ve Player Kartları Grid Yapısı */
.grid.grid-cols-1.md\:grid-cols-2 {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid.grid-cols-1.md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Dealer Kartı Özel Stili */
#dealerCardDisplay {
    margin: 0 auto;
}

/* Player Kartları Container */
.flex.flex-wrap.gap-4 {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
    align-items: flex-start;
}

/* Kart Başlıkları */
.card-selection .text-xl.font-semibold {
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    text-align: left;
} 