.codes-section {
    padding: 60px 0;
}

.codes-section h2 {
    font-size: 42px;
    margin-bottom: 15px;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #cccccc;
    font-size: 18px;
    margin-bottom: 50px;
}

.codes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.code-card {
    background: linear-gradient(145deg, #111111, #0a0a0a);
    border: 1px solid #222222;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.code-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffffff, #888888);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.code-card:hover::before {
    transform: scaleX(1);
}

.code-card:hover {
    border-color: #ffffff;
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    background-color: #1a1a1a;
}

.card-content {
    padding: 25px;
}

.card-title {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 600;
}

.card-description {
    color: #aaaaaa;
    line-height: 1.6;
    font-size: 15px;
    margin-bottom: 20px;
}

.card-tag {
    display: inline-block;
    padding: 6px 12px;
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 6px;
    font-size: 12px;
    color: #ffffff;
    font-weight: 500;
}

.generator-page {
    padding: 60px 0;
}

.generator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.generator-controls {
    background-color: #111111;
    border: 1px solid #222222;
    border-radius: 12px;
    padding: 30px;
}

.generator-controls h3 {
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333333;
}

.control-group {
    margin-bottom: 25px;
}

.control-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #cccccc;
    font-weight: 500;
}

.control-group input[type="color"],
.control-group input[type="range"],
.control-group input[type="text"],
.control-group input[type="number"],
.control-group select {
    width: 100%;
    padding: 10px;
    background-color: #0a0a0a;
    border: 1px solid #333333;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
}

.control-group input[type="color"] {
    height: 50px;
    cursor: pointer;
}

.control-group input[type="range"] {
    padding: 0;
}

.generator-preview {
    background-color: #111111;
    border: 1px solid #222222;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    position: relative;
}

.preview-content {
    text-align: center;
    width: 100%;
}

.watermark {
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-size: 11px;
    color: #444444;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.generate-button {
    width: 100%;
    padding: 18px;
    background-color: #ffffff;
    color: #000000;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.generate-button:hover {
    background-color: #000000;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.code-output {
    background-color: #111111;
    border: 1px solid #222222;
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
    display: none;
}

.code-output.show {
    display: block;
}

.code-output h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.code-block {
    margin-bottom: 25px;
}

.code-block h4 {
    font-size: 16px;
    color: #cccccc;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copy-button {
    padding: 6px 12px;
    background-color: #1a1a1a;
    border: 1px solid #333333;
    color: #ffffff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.copy-button:hover {
    background-color: #ffffff;
    color: #000000;
}

.code-block pre {
    background-color: #0a0a0a;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #ffffff;
}

.code-block code {
    color: #ffffff;
}

@media (max-width: 968px) {
    .generator-container {
        grid-template-columns: 1fr;
    }
    
    .codes-grid {
        grid-template-columns: 1fr;
    }
}