/* Custom Fonts */
@font-face {
    font-family: 'Barcelona';
    src: url('fonts/Barcelona.ttf') format('truetype');
}

@font-face {
    font-family: 'Alexa';
    src: url('fonts/Alexa.ttf') format('truetype');
}

@font-face {
    font-family: 'Bayview';
    src: url('fonts/Bayview.ttf') format('truetype');
}

@font-face {
    font-family: 'Amsterdam';
    src: url('fonts/Amsterdam.ttf') format('truetype');
}

@font-face {
    font-family: 'Avante';
    src: url('fonts/Avante.ttf') format('truetype');
}

@font-face {
    font-family: 'Buttercup';
    src: url('fonts/Buttercup.ttf') format('truetype');
}

@font-face {
    font-family: 'Chelsea';
    src: url('fonts/Chelsea.ttf') format('truetype');
}

@font-face {
    font-family: 'Freehand';
    src: url('fonts/Freehand.ttf') format('truetype');
}

@font-face {
    font-family: 'Marquee';
    src: url('fonts/Marquee.ttf') format('truetype');
}

@font-face {
    font-family: 'NeonGlow';
    src: url('fonts/NeonGlow.ttf') format('truetype');
}

/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #080a0c;
    color: #fff;
    line-height: 1.6;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Color Swatch Styles */
.color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem 0.5rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.color-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.color-swatch {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

input[type="radio"]:checked + .color-swatch {
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3), 0 4px 10px rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.color-name {
    font-size: 0.75rem;
    text-align: center;
    margin-top: 0.25rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

input[type="radio"]:checked ~ .color-name {
    color: #fff;
}

/* Font Selection Styles */
.font-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.75rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.font-option:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
}

.font-option input[type="radio"] {
    display: none;
}

.font-option.selected {
    background-color: rgba(128, 255, 217, 0.1);
    border-color: rgba(128, 255, 217, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.font-option.selected::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #80FFD9, #63AAFF);
}

.font-preview {
    width: 100%;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: transform 0.2s ease;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #80FFD9;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Preview Container */
.preview-container {
    position: relative;
    overflow: hidden;
    background-color: #000;
    border-radius: 0.5rem;
}

.main-canvas-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Neon Text Effect */
.text-transition {
    transition: text-shadow 0.3s ease, fill 0.3s ease;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .grid-cols-3 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .preview-container {
        height: 300px;
    }
}
