* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Logo renklerine uygun palet */
    --primary: #6A0DAD;
    --primary-dark: #5A0B95;
    --primary-light: #8B1FD9;
    --primary-lighter: #B85AFF;
    --text: #2C2C2C;
    --text-light: #6B7280;
    --text-lighter: #9CA3AF;
    --border: #E5E7EB;
    --bg: #FFFFFF;
    --bg-light: #FAFAFA;
    --bg-dark: #F5F5F5;
    --success: #10B981;
    --danger: #EF4444;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    background: var(--bg);
    box-shadow: var(--shadow);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 80px;
    max-width: 300px;
    height: auto;
    width: auto;
    object-fit: contain;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav a:hover {
    color: var(--primary);
}

.nav a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-toggle {
    cursor: pointer;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    padding: 0.5rem 0;
    margin-top: 0.75rem;
    z-index: 1000;
    border: 1px solid var(--border);
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text);
    text-decoration: none;
    transition: background 0.2s ease;
}

.nav-dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.nav-dropdown-menu a::after {
    display: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #F9F9F9 0%, #FFFFFF 100%);
    padding: 5rem 0 4rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.hero h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero p {
    color: var(--text-light);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.search-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 0.75rem;
    background: white;
    padding: 0.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.search-wrapper {
    flex: 1;
    position: relative;
}

.search-form input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    color: var(--text);
    background: transparent;
    position: relative;
    z-index: 2;
}

.search-form input::placeholder {
    color: transparent;
}

.search-wrapper {
    position: relative;
}

.typewriter-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    pointer-events: none;
    z-index: 1;
    border-radius: 12px;
    overflow: hidden;
}

.typewriter-text {
    color: var(--text-lighter);
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.typewriter-cursor {
    color: var(--primary);
    font-size: 1rem;
    margin-left: 2px;
    animation: blink 1s infinite;
    flex-shrink: 0;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.search-form input:focus ~ .typewriter-placeholder,
.search-form input:not(:placeholder-shown) ~ .typewriter-placeholder {
    display: none;
}

.search-form button {
    padding: 1rem 2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    white-space: nowrap;
}

.search-form button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    margin-top: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    border: 1px solid var(--border);
}

.autocomplete-dropdown.show {
    display: block;
}

.autocomplete-item {
    padding: 1rem 1.25rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: var(--bg-light);
}

.autocomplete-item-title {
    font-weight: 600;
    color: var(--text);
    flex: 1;
}

.autocomplete-item-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-light);
}

.autocomplete-loading,
.autocomplete-no-results {
    padding: 1rem 1.25rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.autocomplete-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.autocomplete-badge.free {
    background: #ECFDF5;
    color: #065F46;
}

.autocomplete-badge.paid {
    background: #F3E8FF;
    color: var(--primary);
}

.autocomplete-item-category {
    color: var(--primary);
    font-weight: 500;
}

/* Sections */
section {
    margin: 4rem 0;
}

section h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.category-card {
    background: var(--bg);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.category-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Script Grid */
.script-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Script Card */
.script-card {
    background: var(--bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.script-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.script-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--bg-dark);
    position: relative;
}

.script-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.script-card:hover .script-image img {
    transform: scale(1.05);
}

.script-content {
    padding: 1.75rem;
}

.script-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-free {
    background: #ECFDF5;
    color: #065F46;
}

.badge-paid {
    background: #F3E8FF;
    color: var(--primary);
}

.script-content h4 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.script-content h4 a {
    text-decoration: none;
    color: var(--text);
    transition: color 0.2s ease;
}

.script-content h4 a:hover {
    color: var(--primary);
}

.script-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.script-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-light);
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.script-meta .category {
    color: var(--primary);
    font-weight: 500;
}

.script-meta .downloads {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-dark);
    border-color: var(--primary);
}

/* Footer */
.footer {
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo img {
    max-height: 60px;
    max-width: 250px;
}

.footer-brand {
    margin-bottom: 1rem;
}

.footer-brand h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-text {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.9rem;
}

.footer-menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-menu a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-menu a:hover {
    color: var(--primary);
}

.footer-dropdown {
    margin-bottom: 1.5rem;
}

.footer-dropdown strong {
    display: block;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.footer-dropdown-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-dropdown-links li {
    margin: 0;
}

.footer-dropdown-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-dropdown-links a:hover {
    color: var(--primary);
}

.footer-count {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-left: 0.5rem;
}

.footer-brand h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-social strong {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    display: block;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links a:hover {
    color: var(--primary);
}

.footer-copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Filters */
.filters {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.filter-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-form select {
    padding: 0.875rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: white;
    color: var(--text);
    font-size: 0.95rem;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    min-width: 150px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.filter-form select:hover {
    border-color: var(--primary);
}

.filter-form select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(106, 13, 173, 0.1);
}

.filter-form .search-wrapper {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.filter-form .search-wrapper input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: white;
    color: var(--text);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
}

.filter-form .search-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(106, 13, 173, 0.1);
}

.filter-form button {
    padding: 0.875rem 2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-form button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.filter-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group label {
    font-weight: 500;
    color: var(--text);
    font-size: 0.9rem;
}

.filter-group select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: white;
    color: var(--text);
    font-size: 0.95rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
}

.filter-group select:hover {
    border-color: var(--primary);
}

.filter-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(106, 13, 173, 0.1);
}

@media (max-width: 768px) {
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-form select,
    .filter-form .search-wrapper,
    .filter-form button {
        width: 100%;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    font-weight: 500;
}

.pagination a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination .active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Page Content */
.page-content {
    background: var(--bg);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin-bottom: 3rem;
    border: 1px solid var(--border);
}

.page-content h1 {
    font-size: 2.5rem;
    color: var(--text);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 1rem;
}

.page-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.page-body h2 {
    font-size: 1.8rem;
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-body h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.page-body p {
    margin-bottom: 1rem;
}

.page-body ul, .page-body ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.page-body li {
    margin-bottom: 0.5rem;
}

/* Script Detail */
.script-detail {
    background: var(--bg);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    margin-bottom: 3rem;
}

.script-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.script-header h1 {
    font-size: 2.5rem;
    margin: 1rem 0;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text);
}

.category-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.category-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.script-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.script-gallery {
    margin-bottom: 2rem;
}

.main-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
}

.gallery-thumbs img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.gallery-thumbs img:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.script-info {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    height: fit-content;
    border: 1px solid var(--border);
}

.script-actions {
    margin-bottom: 2rem;
}

.script-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.stat {
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 1.75rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat span {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.script-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tag {
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    border: 1px solid var(--border);
    font-weight: 500;
}

.tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.script-description {
    margin-bottom: 3rem;
}

.script-description h3 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    color: var(--text);
}

.content {
    line-height: 1.8;
    color: var(--text-light);
    font-size: 1rem;
}

/* Comments */
.script-comments {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border);
}

.comments-header {
    margin-bottom: 2rem;
}

.comments-header h3,
.script-comments h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.comment,
.comment-item {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.comment-author {
    font-weight: 600;
    color: var(--text);
}

.comment-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.comment-rating,
.rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
    align-items: center;
}

.comment-rating span,
.rating span {
    color: #FBBF24;
    font-size: 1rem;
}

.comment-text,
.comment-item p {
    color: var(--text-light);
    line-height: 1.7;
    margin-top: 0.75rem;
}

.comment-form {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-top: 2rem;
}

.comment-form h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    background: white;
    transition: all 0.2s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(106, 13, 173, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.rating-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.rating-group label {
    margin: 0;
    cursor: pointer;
}

.rating-group input[type="radio"] {
    display: none;
}

.rating-group input[type="radio"] + span {
    font-size: 1.5rem;
    color: var(--border);
    transition: color 0.2s ease;
    cursor: pointer;
}

.rating-group input[type="radio"]:checked ~ span,
.rating-group input[type="radio"]:checked + span,
.rating-group:hover input[type="radio"]:not(:checked) + span {
    color: #FBBF24;
}

.rating-group:hover input[type="radio"]:not(:checked) + span {
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .script-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .script-detail {
        padding: 2rem;
    }
    
    .script-header h1 {
        font-size: 2rem;
    }
    
    .script-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .comment-form {
        padding: 1.5rem;
    }
    
    .script-info {
        padding: 1.5rem;
    }
    .container {
        padding: 0 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo img {
        max-height: 60px;
        max-width: 250px;
    }
    
    .nav {
        flex-direction: row;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .search-form {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .search-form input {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .typewriter-placeholder {
        padding: 0.875rem 1rem;
    }
    
    .typewriter-text {
        font-size: 0.95rem;
    }
    
    .typewriter-cursor {
        font-size: 0.95rem;
    }
    
    .search-form button {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
    }
    
    .script-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    section {
        margin: 2.5rem 0;
    }
    
    section h3 {
        font-size: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 2rem 0 2rem;
    }
    
    .hero h2 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .search-form {
        max-width: 100%;
    }
    
    .search-form input {
        padding: 0.75rem 0.875rem;
        font-size: 0.9rem;
    }
    
    .typewriter-placeholder {
        padding: 0.75rem 0.875rem;
    }
    
    .typewriter-text {
        font-size: 0.9rem;
    }
    
    .typewriter-cursor {
        font-size: 0.9rem;
    }
    
    .search-form button {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .script-content {
        padding: 1.25rem;
    }
    
    .page-content {
        padding: 1.5rem;
    }
}
