@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Text:ital@0;1&family=Itim&family=Playwrite+AU+SA:wght@100..400&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #4a6fa5;
    --primary-light: #6d98d9;
    --primary-dark: #2c4a76;
    --secondary-color: #ff6b6b;
    --accent-color: #4ecdc4;
    --background-light: #f8f9fa;
    --background-dark: #1a1a2e;
    --text-light: #333333;
    --text-dark: #f8f9fa;
    --card-light: #ffffff;
    --card-dark: #16213e;
    --header-light: linear-gradient(135deg, #4a6fa5 0%, #6d98d9 100%);
    --header-dark: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
    --footer-light: #343a40;
    --footer-dark: #0f3460;
    --shadow-light: 0 8px 20px rgba(0, 0, 0, 0.1);
    --shadow-dark: 0 8px 20px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

.darkmode {
    --primary-color: #6d98d9;
    --primary-light: #8ab6d6;
    --primary-dark: #4a6fa5;
    --background-light: #1a1a2e;
    --background-dark: #0f3460;
    --text-light: #f8f9fa;
    --text-dark: #e9ecef;
    --card-light: #16213e;
    --card-dark: #0f3460;
}

/* Standart style start */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: var(--background-light);
    color: var(--text-light);
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
    transition: var(--transition);
    line-height: 1.6;
}

header {
    width: 100%;
    background: var(--header-light);
    color: white;
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-light);
    position: fixed;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.darkmode header {
    background: var(--header-dark);
    box-shadow: var(--shadow-dark);
}

main {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 90%;
    max-width: 1200px;
    margin-top: 8%;
    padding: 2rem;
    transition: var(--transition);
}

footer {
    background-color: var(--footer-light);
    color: white;
    width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    transition: var(--transition);
}

.darkmode footer {
    background-color: var(--footer-dark);
}

footer div {
    padding: 1rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: var(--transition);
    font-weight: 500;
}

a:hover {
    color: var(--primary-dark);
    background-color: rgba(74, 111, 165, 0.1);
}

/* Standart style ende */

table {
    color: var(--text-light);
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.darkmode table {
    box-shadow: var(--shadow-dark);
}

table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.darkmode table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

table tbody tr {
    transition: var(--transition);
}

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

.darkmode table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

table tbody a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: var(--transition);
    display: inline-block;
}

table tbody a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

table thead {
    font-size: 1.1rem;
    background-color: var(--primary-color);
    color: white;
}

table thead td {
    padding: 1.2rem 1rem;
    font-weight: 600;
}

.head {
    margin-bottom: 2rem;
    background: var(--header-light);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.darkmode .head {
    background: var(--header-dark);
    box-shadow: var(--shadow-dark);
}

.content {
    width: 90%;
    max-width: 1000px;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
    background-color: var(--card-light);
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.darkmode .content {
    background-color: var(--card-dark);
    box-shadow: var(--shadow-dark);
}

.footer {
    color: white;
    display: flex;
    align-items: center;
    bottom: 0;
    margin-top: 2rem;
    justify-content: space-around;
}

.darkmodebutton {
    background-color: var(--primary-color);
    border: none;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: white;
    padding: 0.8rem 1.5rem;
    transition: var(--transition);
}

.darkmodebutton:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.article {
    background-color: var(--card-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 90%;
    max-width: 800px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    min-height: 120px;
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    cursor: pointer;
}

.darkmode .article {
    background-color: var(--card-dark);
    box-shadow: var(--shadow-dark);
}

.article:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.darkmode .article:hover {
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
}

.article div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    width: 100%;
    margin-top: 0;
}

.article h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.article p {
    color: var(--text-light);
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    main {
        margin-top: 20%;
        padding: 1rem;
    }
    
    header {
        padding: 1rem;
    }
    
    .content {
        width: 95%;
        padding: 1.5rem;
    }
    
    table thead {
        font-size: 1rem;
    }
    
    table td {
        padding: 0.8rem;
    }
    
    footer div {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .article div {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    main {
        margin-top: 25%;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    table thead {
        font-size: 0.9rem;
    }
    
    .article {
        padding: 1rem;
    }
    
    .article h3 {
        font-size: 1.2rem;
    }
}