﻿.buttons-header {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    position: relative;
    color: #ffffff;
    overflow: hidden;
}

    .buttons-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(0,0,0,0.4) 100%);
        z-index: 1;
    }

    .buttons-header h1 {
        font-size: 3.2em;
        font-weight: 700;
        margin-bottom: 15px;
        text-transform: uppercase;
        letter-spacing: 2px;
        animation: fadeInDown 1s ease-out;
        position: relative;
        z-index: 2;
    }

    .buttons-header p {
        font-size: 1.3em;
        color: #bbbbbb;
        animation: fadeInUp 1s ease-out 0.3s both;
        position: relative;
        z-index: 2;
    }

.sticky-nav {
    position: sticky;
    top: 0;
    background: #1e1e1e;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

    .sticky-nav ul {
        display: flex;
        justify-content: center;
        list-style: none;
        gap: 20px;
    }

    .sticky-nav a {
        color: #ffffff;
        text-decoration: none;
        font-size: 1.1em;
        transition: color 0.3s ease;
    }

        .sticky-nav a:hover, .sticky-nav a.active {
            color: #ffd700;
        }

.buttons-layout {
    display: flex;
    gap: 30px;
}

.buttons-main {
    flex: 3;
}

.buttons-sidebar {
    flex: 1;
    background: #1e1e1e;
    padding: 20px;
    border-radius: 15px;
    position: sticky;
    top: 80px;
    height: fit-content;
}

    .buttons-sidebar h3 {
        font-size: 1.4em;
        color: #ffd700;
        margin-bottom: 15px;
    }

    .buttons-sidebar ul {
        list-style: none;
    }

    .buttons-sidebar a {
        color: #bbbbbb;
        text-decoration: none;
        font-size: 1em;
        display: block;
        padding: 10px 0;
        transition: color 0.3s ease;
    }

        .buttons-sidebar a:hover {
            color: #1e90ff;
        }

.social-share {
    margin-top: 20px;
}

    .social-share h3 {
        font-size: 1.2em;
        color: #ffd700;
        margin-bottom: 10px;
    }

    .social-share a {
        color: #ffffff;
        font-size: 1.5em;
        margin-right: 15px;
        transition: color 0.3s ease;
    }

        .social-share a:hover {
            color: #ff6f61;
        }

.adsense-placeholder {
    margin-top: 20px;
    padding: 15px;
    background: #121212;
    border-radius: 8px;
    text-align: center;
    color: #bbbbbb;
}

.button-section {
    padding: 50px;
    background: #1e1e1e;
    border-radius: 15px;
    margin-bottom: 30px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

    .button-section:hover {
        transform: translateY(-10px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    }

    .button-section h2 {
        font-size: 2em;
        color: #ffd700;
        margin-bottom: 20px;
    }

    .button-section p {
        font-size: 1.1em;
        color: #bbbbbb;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .button-section a {
        color: #1e90ff;
        text-decoration: none;
    }

        .button-section a:hover {
            text-decoration: underline;
        }

.code-playground {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.code-editor, .code-output {
    flex: 1;
    min-width: 300px;
    background: #ffffff;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #cccccc;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
}

    .code-editor:hover, .code-output:hover {
        transform: scale(1.02);
    }



.editor-header {
    background: #f0f0f0;
    padding: 10px;
    border-radius: 8px 8px 0 0;
    font-size: 1.2em;
    color: #333333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #cccccc;
}

.fullscreen-btn {
    background: transparent;
    border: none;
    color: #333333;
    font-size: 1em;
    cursor: pointer;
    transition: color 0.3s ease;
}

    .fullscreen-btn:hover {
        color: #ff6f61;
    }

.code-editor .CodeMirror {
    height: 300px;
    border-radius: 0 0 8px 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    background: #ffffff;
    border: 1px solid #cccccc;
    color: #000000;
}

.code-editor .CodeMirror-linenumber {
    color: #000000;
    font-size: 0.9em;
}

.code-editor.fullscreen .CodeMirror {
    height: calc(100% - 60px);
}

.code-output iframe {
    width: 100%;
    height: 300px;
    border: none;
    background: #ffffff;
    border-radius: 0 0 8px 8px;
    border: 1px solid #cccccc;
}

.code-output.fullscreen iframe {
    height: calc(100% - 60px);
}

.code-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.run-code-btn, .download-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.run-code-btn {
    background: #ff6f61;
    color: #ffffff;
}

    .run-code-btn:hover {
        background: #e55a50;
        transform: scale(1.05);
    }

.download-btn {
    background: #1e90ff;
    color: #ffffff !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .download-btn:hover {
        border: 2px solid #1565c0;
        background: #ffffff;
        color: #000000 !important;
        transform: scale(1.05);
        text-decoration: none !important;
    }

@media (max-width: 768px) {
    .buttons-header h1 {
        font-size: 2.2em;
    }

    .buttons-header p {
        font-size: 1.1em;
    }

    .sticky-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .buttons-layout {
        flex-direction: column;
    }

    .buttons-sidebar {
        position: static;
    }

    .button-section {
        padding: 30px;
    }

    .code-playground {
        flex-direction: column;
    }

    .code-editor .CodeMirror {
        font-size: 0.8em;
    }

    .code-editor .CodeMirror-linenumber {
        font-size: 0.8em;
    }
}
