@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&family=Montserrat:wght@700&display=swap');

/* Genel stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

/* Topbar stilleri */
.topbar {
    background-color: #2196F3;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    width: 48px;
    height: 48px;
}

.app-name {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Ana container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.back-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1565C0;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-bottom: 15px;
    font-weight: 500;
}

.back-button:hover {
    background-color: #0D47A1;
}

/* Olasılık bölümü */
.probability-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.events-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.event-button {
    padding: 15px;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    line-height: 1.4;
}

.event-button:hover {
    background-color: #e3f2fd;
    border-color: #90caf9;
    transform: translateY(-2px);
}

.event-button.active {
    background-color: #e3f2fd;
    border-color: #2196F3;
    color: #1565C0;
    font-weight: 500;
}

/* Spektrum */
.spectrum-container {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section-title {
    text-align: center;
    color: #1565C0;
    margin: 20px 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.spectrum {
    position: relative;
    height: 100px;
    padding: 20px 0;
    margin: 0 20px;
}

.spectrum::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #2196F3;
    border-radius: 2px;
    transform: translateY(-50%);
}

.fixed-points {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 1;
}

.point {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: white;
    border: 2px solid #2196F3;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.point::after {
    content: attr(data-label);
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: #6c757d;
    white-space: nowrap;
}

.point:first-child::after {
    content: "0\A İmkansız";
    white-space: pre;
    text-align: center;
    color: #2196F3;
    font-weight: 500;
    font-size: 0.85rem;
}

.point:last-child::after {
    content: "1\A Kesin";
    white-space: pre;
    text-align: center;
    color: #2196F3;
    font-weight: 500;
    font-size: 0.85rem;
}

.marker {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    background-color: #dc3545;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: left 0.3s ease;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.3);
    z-index: 2;
}

.labels {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0;
}

.label-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.label-group span {
    font-size: 0.9rem;
    color: #6c757d;
}

.label-group .label-text {
    font-size: 0.8rem;
    color: #2196F3;
    font-weight: 500;
}

.labels > span {
    font-size: 0.9rem;
    color: #6c757d;
}

.event-description {
    text-align: center;
    margin-top: 20px;
    font-size: 1.1rem;
    color: #495057;
    min-height: 40px;
}
