/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #121212;
    color: #FFD700;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
}

.main-title {
    font-size: 3rem;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    font-weight: 300;
}

.header-actions {
    margin-top: 20px;
}

.back-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: rgba(255, 215, 0, 0.1);
    color: #FFD700;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #FFD700;
    transition: all 0.3s ease;
    font-weight: 500;
}

.back-btn:hover {
    background-color: #FFD700;
    color: #121212;
    transform: translateY(-2px);
}

/* Filter Buttons */
.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    padding: 20px;
}

.filter-btn {
    padding: 12px 24px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #cccccc;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-btn:hover {
    background-color: rgba(255, 215, 0, 0.1);
    border-color: #FFD700;
    color: #FFD700;
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: #FFD700;
    color: #121212;
    border-color: #FFD700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1400px) {
    .portfolio-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Portfolio Items */
.portfolio-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    border-color: #FFD700;
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.2);
}

.portfolio-image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(18, 18, 18, 0.1) 0%,
        rgba(18, 18, 18, 0.7) 70%,
        rgba(18, 18, 18, 0.9) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #FFD700;
    margin-bottom: 8px;
}

.portfolio-description {
    font-size: 0.9rem;
    color: #cccccc;
    margin-bottom: 10px;
    line-height: 1.4;
}

.portfolio-category {
    font-size: 0.8rem;
    color: #FFD700;
    background-color: rgba(255, 215, 0, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
    align-self: flex-start;
    font-weight: 500;
}

/* Loading and Empty States */
.loading {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-top: 3px solid #FFD700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #cccccc;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #FFD700;
    margin-bottom: 10px;
}



/* Admin Page Styles */
.admin-body {
    background-color: #0a0a0a;
}

.admin-section {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.section-title {
    font-size: 1.8rem;
    color: #FFD700;
    margin-bottom: 25px;
    font-weight: 600;
}

/* Info Notice Styles */
.info-notice {
    background-color: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.notice-content p {
    color: #FFD700;
    font-weight: 600;
    margin-bottom: 15px;
}

.notice-content ul {
    color: #cccccc;
    padding-left: 20px;
}

.notice-content li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Form Styles */
.admin-form {
    display: grid;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #FFD700;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #FFD700;
    color: #121212;
}

.btn-primary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: #cccccc;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.btn-danger {
    background-color: #ff4757;
    color: #ffffff;
}

.btn-danger:hover {
    background-color: #ff3838;
    transform: translateY(-2px);
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

/* Search Styles */
.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
}

.search-input:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.search-btn {
    padding: 12px 20px;
    background-color: #FFD700;
    color: #121212;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(255, 255, 255, 0.02);
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.data-table th {
    background-color: rgba(255, 215, 0, 0.1);
    color: #FFD700;
    font-weight: 600;
    position: sticky;
    top: 0;
}

.data-table td {
    color: #cccccc;
}

.data-table tr:hover {
    background-color: rgba(255, 215, 0, 0.05);
}

.table-image {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.item-actions {
    display: flex;
    gap: 8px;
}

/* Status Message */
.status-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #FFD700;
    color: #121212;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 400px;
}

.status-message.error {
    background-color: #ff4757;
    color: #ffffff;
}

.status-message.success {
    background-color: #2ed573;
    color: #ffffff;
}

.status-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.modal-content h3 {
    color: #FFD700;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.modal-content p {
    color: #cccccc;
    margin-bottom: 25px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .filter-container {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .admin-section {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .data-table {
        font-size: 0.9rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px;
    }
    
    .item-actions {
        flex-direction: column;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .portfolio-overlay {
        padding: 15px;
    }
    
    .portfolio-title {
        font-size: 1rem;
    }
    
    .portfolio-description {
        font-size: 0.8rem;
    }
}

