/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #191820;
    color: #ffffff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #ffffff;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* Header styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #191820;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-circle {
    width: 20px;
    height: 20px;
    background-color: #ff4d4d;
    border-radius: 50%;
}

.logo h1 {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
}

.main-nav ul {
    display: flex;
    gap: 25px;
    align-items: center;
}

.sign-in {
    font-weight: 500;
}

/* Category navigation */
.category-nav {
    border-top: 1px solid #33333e;
    border-bottom: 1px solid #33333e;
    padding: 10px 30px;
}

.category-nav ul {
    display: flex;
    gap: 25px;
}

.category-nav a {
    color: #6f757d;
    font-size: 14px;
    transition: color 0.3s;
}

.category-nav a:hover,
.category-nav a.active {
    color: #ffffff;
}

/* Main content layout */
main {
    display: flex;
    padding: 30px;
    gap: 30px;
}

.content {
    flex: 1;
}

.sidebar {
    width: 300px;
}

/* Featured template */
.featured-template {
    margin-bottom: 40px;
}

.template-image {
    background-color: #1f1f2c;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.template-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.item-tags, .item-detail {
    margin-bottom: 20px;
}

.item-tags h3, .item-detail h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.tags {
    display: flex;
    gap: 10px;
}

.tag {
    background-color: #1f1f2c;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.item-detail p {
    color: #dfdfdf;
    margin-bottom: 10px;
    font-size: 14px;
}

/* Similar templates section */
.similar-templates h2 {
    margin-bottom: 20px;
    font-size: 20px;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.template-card {
    background-color: #1f1f2c;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.template-thumbnail {
    position: relative;
}

.template-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.template-info {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 10px;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.template-info h4 {
    font-size: 14px;
    margin-bottom: 2px;
}

.template-info p {
    font-size: 12px;
    color: #dfdfdf;
}

.template-actions {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
}

.action-btn {
    color: #ffffff;
    background-color: rgba(0,0,0,0.5);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.action-btn:hover {
    background-color: #8137e9;
}

.more-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #ffffff;
    background-color: rgba(0,0,0,0.5);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sidebar styles */
.template-info-card {
    background-color: #1f1f2c;
    border-radius: 8px;
    padding: 20px;
}

.template-info-card h2 {
    font-size: 14px;
    color: #6f757d;
    margin-bottom: 10px;
}

.template-info-card h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.template-info-card > p {
    color: #6f757d;
    font-size: 14px;
    margin-bottom: 20px;
}

.pricing-box {
    background-color: #33333e;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.pricing-box h3 {
    text-align: center;
    margin-bottom: 10px;
}

.price {
    text-align: center;
    margin-bottom: 20px;
}

.amount {
    font-size: 24px;
    font-weight: bold;
}

.period {
    font-size: 14px;
    color: #6f757d;
}

.start-btn {
    background-color: #8137e9;
    color: #ffffff;
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
    margin-bottom: 20px;
    transition: background-color 0.3s;
}

.start-btn:hover {
    background-color: #5e37e9;
}

.features {
    border-top: 1px solid #1f1f2c;
    padding-top: 15px;
}

.feature {
    margin-bottom: 10px;
    font-size: 14px;
}

.free-tag {
    background-color: #8137e9;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 5px;
}

.feature p {
    font-size: 12px;
    color: #6f757d;
    margin-top: 2px;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.download-btn {
    background-color: #8137e9;
    color: #ffffff;
    flex: 1;
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.download-btn:hover {
    background-color: #5e37e9;
}

.secondary-actions {
    display: flex;
    gap: 10px;
}