:root {
    --background-color: #FAFBFC;
    --font-color: #1A1D1F;

    --primary-color: #2D2E32;
    --secondary-color: #6366F1;
    --tertiary-color: #E0E7FF;

    --notification-color: #DC2626;
    --success-color: #10B981;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.dark-theme {
    --background-color: #0D0E12;
    --font-color: #F9FAFB;

    --primary-color: #E5E7EB;
    --secondary-color: #1E222A;
    --tertiary-color: #1E222A;

    --notification-color: #EF4444;
    --success-color: #34D399;
    --border-color: #374151;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* FONTLAR */

@font-face {
    font-family: 'RiseFont';
    src: url('../fonts/cs.otf') format('opentype');
    font-weight: normal; 
    font-style: normal; 
    font-display: swap;
}
@font-face {
    font-family: 'Exo2-SemiBold';
    src: url('../fonts/exo2/Exo2-SemiBold.otf') format('opentype');
    font-weight: normal; 
    font-style: normal; 
    font-display: swap;
}
@font-face {
    font-family: 'Exo2-BlackItalic';
    src: url('../fonts/exo2/Exo2-Black.otf') format('opentype');
    font-weight: normal; 
    font-style: normal; 
    font-display: swap;
}
@font-face {
    font-family: 'Exo2-Light';
    src: url('../fonts/exo2/Exo2-Light.otf') format('opentype');
    font-weight: normal; 
    font-style: normal;
    font-display: swap; 
}


.specfont{
    font-family: 'RiseFont', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.exofont{
    font-family: 'Exo2-SemiBold', sans-serif;
}

body{
    margin: 0;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-color: var(--background-color);
    color: var(--font-color);
    line-height: 1.6;
}

a{
    text-decoration: none;
    color: var(--font-color);
    transition: color 0.2s ease;
}

a + .link{
    color: var(--secondary-color);
}

a:hover {
    color: var(--secondary-color);
}

h1 {
    font-family: 'RiseFont', sans-serif;
    text-transform: uppercase;
    font-size: 2em;
    letter-spacing: 1px;
    margin: 0;
    font-weight: 700;
}

h2 {
    font-family: 'Exo2-Light', sans-serif;
    font-size: 1.5em;
    font-weight: 300;
    margin: 0;
}


.container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 1400px;
    margin: 0 auto;
}

header, main, footer {
    padding-top: 5px;
    text-align: center;
}

header {
    display: flex;
    flex-direction: row;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    gap: 10px;
    padding: 1rem 2rem;
    background: var(--background-color);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left{
    text-align: left;        
    font-family: 'RiseFont', sans-serif;
    padding-left: 20px;
    font-size: 1.7em;
    flex: 2;
}


.header-middle{
    flex: 3;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}

.header-right{
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.header-item{
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.header-item:hover {
    background: var(--tertiary-color);
    transform: translateY(-2px);
}

.header-item:hover a{
    color: var(--secondary-color);
}

.focus-header{
    border-bottom: 2px solid var(--secondary-color);
    background: var(--tertiary-color);
}

.focus-header a{
    color: var(--secondary-color);
    font-weight: 600;
}

main {
    flex: 1;
    display: flex;
    min-height: 100vh;
    padding: 2rem 1rem;
}

aside {
    padding: 20px;
    flex: 0.5;
    opacity: 1;
}

.aside-card {
    background: var(--background-color);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.aside-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.aside-card h3 {
    font-family: 'Exo2-SemiBold', sans-serif;
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    color: var(--secondary-color);
}

.aside-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--font-color);
    opacity: 0.85;
}

section{
    flex: 3;
    min-height: 90vh;
}

article{
    padding: 1.5rem;
    margin: 0 auto;
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    background: var(--background-color);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

nav{
    flex: 0.2;
}

footer {
    margin-bottom: 0px;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
}



.inputs{
    flex: 1 1 auto;
    border: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 20px;
}

.inputandiconbox{
    position: relative;
    display: inline-block;
    width: 320px;
}

.girdi{
    height: 54px;
    width: 100%;
    background: var(--background-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    font-size: 16px;
    color: var(--font-color);
    flex: 1;
    font-family: 'RiseFont', sans-serif;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.girdi:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.girdi:hover {
    border-color: var(--secondary-color);
}

.inputIcon{
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    transition: transform 0.2s ease;
    color: var(--secondary-color);
}

.inputIcon:hover {
    transform: translateY(-50%) scale(1.1);
}

option{
    background: var(--background-color);
    color: var(--font-color);
}

.newMoment{
    outline: none;
    background: none;
    padding: 5px;
    color: var(--font-color);
    line-height: 1.5;
    box-sizing: border-box;
    flex: 1;
}




button{
    border: none;
    background: none;
    color: var(--font-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

button:hover {
    transform: translateY(-1px);
}


.tablo{
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

tr{
    display: flex;
    margin-top: 5px;
    background: var(--background-color);
    border-radius: 10px;
    padding: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

tr:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

th{
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-color);
    padding: 1rem 0.5rem;
}

td{
    flex: 1;
    font-size: 14px;
    padding: 0.5rem;
}

.kolon1{
    flex: 2;
    font-size: 15px;
    font-weight: 500;
}
.kolon2{
    flex: 1;
    font-size: 12px;
}
.kolon3{
    flex: 1;
    font-size: 12px;
}
.kolon4{
    flex: 2;
    font-size: 12px;
}
.kolon5{
    flex: 2;
    font-size: 15px;
    font-weight: 500;
}

.bildirim{
    position: fixed;
    top: 5%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 1.25rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}


.flex{
    display: flex;
}
.flex1{ flex: 1;}
.flex2{ flex: 2;}
.flex3{ flex: 3;}
.flex4{ flex: 4;}
.flex5{ flex: 5;}
.aligncenter{align-items: center;}


.gradient-button {
    background: linear-gradient(135deg, var(--secondary-color), #8B5CF6);
    color: white;
    padding: 0.75rem 1.5rem;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    flex: 1;
    border-radius: 10px;
    border: none;
    letter-spacing: 0.3px;
}

.gradient-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    opacity: 0.9;
}

.gradient-button:active {
    transform: translateY(-1px);
}

.guncel-card{
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem;
    margin: 10px;
    text-align: center;
    align-items: center;
    background: var(--background-color);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.guncel-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.guncel-item-card{
    flex: 2;
    text-align: left;
    align-items: center;
}

.deger{
    flex: 2;
    background: linear-gradient(135deg, var(--secondary-color), #8B5CF6);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 1.1em;
    letter-spacing: 0.5px;
}

.deger:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Dikey Olan güncel */
.guncel-card-dikey{
    display: flex;
    flex-direction: row;
    flex: 1;
    text-align: center;
    align-items: center;
    gap: 1rem;
}





/* NAVIGATION LINKS */
.header-item a,
.header-middle a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--font-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.header-middle a:hover {
    color: var(--secondary-color);
}

.focus-header {
    border-bottom: 2px solid var(--secondary-color);
    background: var(--tertiary-color);
    border-radius: 8px;
}

.focus-header a {
    color: var(--secondary-color) !important;
    font-weight: 600;
}

/* HEADER LAYOUT */
.header-middle {
    flex: 3;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    justify-content: center;
}

.header-item {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

/* FOOTER */
footer {
    margin-top: auto;
    padding: 2rem 1rem;
    border-top: 1px solid var(--border-color);
    background: var(--background-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    font-family: 'RiseFont', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
}

.footer-section h4 {
    font-family: 'Exo2-SemiBold', sans-serif;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--font-color);
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--font-color);
    opacity: 0.85;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--font-color);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.85;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
    opacity: 1;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* LOADING INDICATOR */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid var(--border-color);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* FORM ACCESSIBILITY */
.girdi,
.maas-girdi {
    position: relative;
}

.girdi:focus,
.maas-girdi:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Replace placeholder-only inputs with visible labels for screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Better spacing for sections */
section {
    padding: 1rem 0;
}

article {
    margin-bottom: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-middle {
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-item {
        flex: 0 0 auto;
        min-width: 60px;
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-section {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .header-left {
        font-size: 1.4em;
        text-align: center;
        padding-left: 0;
    }

    header {
        flex-direction: column !important;
        gap: 0.5rem;
        padding: 1rem;
    }

    .header-item {
        padding: 0.5rem;
    }
}

