/* Reset ve temel stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #333333;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    padding: 25px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

/* Ana içerik */
main {
    padding: 40px 0;
}

.generator-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* Format Preview */
.format-preview {
    margin: 20px 0;
    padding: 20px;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.format-preview h3 {
    margin-bottom: 15px;
    color: #495057;
    font-size: 1.1rem;
    border: none;
    padding: 0;
}

.preview-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.preview-item {
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.preview-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Minecraft font import */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');

.preview-visual {
    background: #000000;
    padding: 12px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.8rem;
    min-height: 70px;
    position: relative;
    overflow: hidden;
    border: 1px solid #404040;
    display: flex;
    align-items: center;
}

/* Minecraft Chat UI */
#chatPreview {
    background: 
        radial-gradient(ellipse at center, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.9) 100%),
        linear-gradient(45deg, #1a1a2e, #16213e);
    align-items: flex-start;
}

#chatPreview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 1px,
        rgba(255,255,255,0.03) 1px,
        rgba(255,255,255,0.03) 2px
    );
    pointer-events: none;
}

.chat-messages {
    position: relative;
    z-index: 1;
}

.chat-message {
    color: #ffffff;
    text-shadow: 1px 1px 0px #000000;
    position: relative;
    z-index: 1;
    margin-bottom: 1px;
    font-size: 0.75rem;
    line-height: 1.3;
}

.chat-timestamp {
    color: #888888;
    font-size: 0.7rem;
    text-shadow: 1px 1px 0px #000000;
}

.chat-player {
    color: #55ff55;
    font-weight: bold;
    text-shadow: 1px 1px 0px #000000;
}

.chat-text {
    color: #ffffff;
    text-shadow: 1px 1px 0px #000000;
}

/* Tab List UI */
#tabPreview {
    background: 
        radial-gradient(ellipse at center, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.9) 100%),
        linear-gradient(45deg, #1a1a2e, #16213e);
}

.tab-list {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #555555;
    padding: 8px 12px;
    border-radius: 2px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
    width: 100%;
}

.tab-player {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
    text-shadow: 1px 1px 0px #000000;
}

.tab-ping {
    color: #55ff55;
    font-size: 0.75rem;
    text-shadow: 1px 1px 0px #000000;
}

/* MOTD Server List UI */
#motdPreview {
    background: 
        radial-gradient(ellipse at center, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.9) 100%),
        linear-gradient(45deg, #1a1a2e, #16213e);
    align-items: flex-start;
}

.motd-container {
    text-align: left;
    width: 100%;
    background: rgba(0,0,0,0.3);
    padding: 8px;
    border-radius: 2px;
}

.motd-line {
    color: #ffff55;
    margin: 2px 0;
    text-shadow: 2px 2px 0px #000000;
    font-size: 0.9rem;
}

.motd-info {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    padding-top: 4px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.motd-version {
    color: #888888;
    font-size: 0.75rem;
    text-shadow: 1px 1px 0px #000000;
}

.motd-players {
    color: #55ff55;
    font-size: 0.75rem;
    text-shadow: 1px 1px 0px #000000;
}

/* Title Screen UI */
#titlePreview {
    background: 
        radial-gradient(ellipse at center, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.9) 100%),
        linear-gradient(45deg, #1a1a2e, #16213e);
    justify-content: center;
}

.title-container {
    text-align: center;
    width: 100%;
    position: relative;
}

.title-text {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 
        2px 2px 0px #000000,
        -1px -1px 0px #000000,
        1px -1px 0px #000000,
        -1px 1px 0px #000000,
        1px 1px 0px #000000;
    letter-spacing: 0.5px;
}

.subtitle-text {
    font-size: 0.7rem;
    color: #ffff55;
    text-shadow: 1px 1px 0px #000000;
    font-weight: 400;
}

/* Minecraft-style gradient text */
.gradient-text {
    font-weight: bold;
    display: inline-block;
    position: relative;
    /* Character-by-character coloring set by JavaScript */
}

.gradient-text span {
    font-weight: inherit;
}

/* Minecraft pixelated effects */
.preview-visual * {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* Scanlines effect for authentic CRT look */
.preview-visual::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255,255,255,0.01) 2px,
        rgba(255,255,255,0.01) 4px
    );
    pointer-events: none;
    z-index: 10;
}

/* Bölüm başlıkları */
h2, h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.4rem;
    margin-top: 30px;
}

/* Input grupları */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

textarea, input[type="text"], input[type="number"], select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

textarea:focus, input:focus, select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

textarea {
    resize: vertical;
    min-height: 80px;
    font-family: 'Courier New', monospace;
}

/* Format seçici */
.format-selector {
    margin-bottom: 30px;
}

.format-selector select {
    max-width: 300px;
}

/* Renk kontrolleri */
.color-controls, .shadow-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.control-group label {
    font-weight: 500;
}

.control-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

/* Renk input grupları */
.color-inputs, .shadow-color-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.color-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.color-input-group label {
    min-width: 70px;
    margin-bottom: 0;
    font-weight: 500;
}

input[type="color"] {
    width: 50px;
    height: 40px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.color-input-group input[type="text"] {
    flex: 1;
    margin: 0;
}

/* Ek renkler */
.additional-colors {
    margin-top: 20px;
}

/* Output bölümü */
.output-container {
    position: relative;
    margin-bottom: 20px;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.copy-btn:hover {
    background: #2980b9;
}

.copy-btn:active {
    transform: translateY(1px);
}

#outputText {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    padding-right: 80px;
}

/* Custom format */
.custom-format {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Prefix/Suffix */
.prefix-suffix-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Seçenekler */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.options-grid label {
    display: flex;
    align-items: center;
    font-weight: 500;
    cursor: pointer;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.options-grid label:hover {
    background: #e9ecef;
}

.option-note {
    font-size: 14px;
    color: #6c757d;
    font-style: italic;
}

/* Formatlama kontrolleri */
.formatting-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.formatting-controls label {
    display: flex;
    align-items: center;
    font-weight: 500;
    cursor: pointer;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.formatting-controls label:hover {
    background: #e9ecef;
}

/* Presetler */
.presets-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(0);
}

#presetsList {
    max-width: 300px;
}

/* Not mesajları */
.note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

.output-description {
    color: #6c757d;
    margin-bottom: 10px;
    font-weight: 500;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}

.footer p {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .generator-section {
        padding: 20px;
        margin: 20px 0;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .color-controls, .shadow-controls {
        grid-template-columns: 1fr;
    }
    
    .color-inputs, .shadow-color-inputs {
        grid-template-columns: 1fr;
    }
    
    .prefix-suffix-inputs {
        grid-template-columns: 1fr;
    }
    
    .options-grid, .formatting-controls {
        grid-template-columns: 1fr;
    }
    
    .presets-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .color-input-group {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .color-input-group label {
        min-width: auto;
    }

    .preview-container {
        grid-template-columns: 1fr;
    }
}

/* Animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.generator-section {
    animation: fadeIn 0.6s ease-out;
}

/* Scroll bar özelleştirmesi */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
} 